ngl GSK_RENDERER does not work in MSYS2/Windows 10 with the latest GTK 4.14.2
Steps to reproduce
Launch any GTK program, for example : $ gtk4-demo
Current behavior
The window does not show correctly (I just see three rectangles with different shades of light grey) and a lot of these messages are printed in the terminal:
Error Message:
(gtk4-demo.exe:12548): Gsk-CRITICAL **: 13:11:46.526: Failed to load shader program: Compilation failure in shader.
Source Code:
1| #version 420
2| #define N_TEXTURES 16
3| #define N_EXTERNAL_TEXTURES 0
4| #define GSK_VERTEX_SHADER 1
5| #define GSK_VARIATION 0u
6| #define GSK_SHADER_CLIP GSK_GPU_SHADER_CLIP_NONE
...
2364| }
2365|
2366| #endif
Expected outcome
It should work.
Version information
- MSYS2 in Windows 10: MINGW64_NT-10.0-19045 3.4.10.x86_64
- mingw-w64-ucrt-x86_64-gtk4 4.14.2-1
- mingw-w64-ucrt-x86_64-glib2 2.80.0-1
Additional information
-
AFAIK, there was no problem with GTK 4.12.
-
A workaround to make it work is:
$ GSK_RENDERER=gl gtk4-demo
- A similar issue was already fixed in macOS: #6363 (closed)