Windows: OpenGL not working with MESA
When running GTK4 applications with MESA I get the following errors:
warning: Mesa: User error: GL_INVALID_ENUM in glSamplerParameteri(param=9987)
(gtk4-demo.exe:2068): Gdk-CRITICAL **: 14:09:34.562: OPENGL:
Source: API
Type: Error
Severity: High
Message: GL_INVALID_ENUM in glSamplerParameteri(param=9987)
(gtk4-demo.exe:2068): Gdk-CRITICAL **: 14:09:34.562: OPENGL:
Source: API
Type: Error
Severity: High
Message: GL_INVALID_ENUM in glSamplerParameteri(param=9987)
(gtk4-demo.exe:2068): Gdk-CRITICAL **: 14:09:34.562: OPENGL:
Source: API
Type: Error
Severity: High
Message: GL_INVALID_ENUM in glSamplerParameteri(param=9987)
(gtk4-demo.exe:2068): Gdk-WARNING **: 14:09:35.305: gdk_gl_context_make_current() failed
As make_current() fails, nothing shows up.
There are also issues with GTK3 when running with LIBGL_ALWAYS_SOFTWARE=1
. If I launch gtk3-demo --run=opengl
, I get the following error message:
Illegal sampler view creation without bind flag
The window is transparent for a few seconds, then after some redraws it shows up correctly
Edited by Luca Bacci