Merge branch 'wgl-legacy' into 'main'

GSK/GL: Relax check for GL 3.x+ legacy contexts

See merge request GNOME/gtk!4187
This commit is contained in:
Luca Bacci 2022-01-03 13:11:04 +00:00
commit 2aab55983d

View File

@ -147,7 +147,8 @@ gsk_gl_compiler_new (GskGLDriver *driver,
gdk_gl_context_get_version (context, &maj, &min);
if (maj == 3)
/* On Windows, legacy contexts can give us a GL 4.x context */
if (maj >= 3)
self->glsl_version = SHADER_VERSION_GL3_LEGACY;
else
self->glsl_version = SHADER_VERSION_GL2_LEGACY;