From c73fe8ac4a1101d83db65106e8095532ef4420de Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 3 May 2024 16:40:01 +1200 Subject: [PATCH] glcontext: Remove duplicate check for GL version --- gdk/gdkglcontext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 8f23eeccd1..e5c3ce8ffe 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -1956,8 +1956,6 @@ gdk_gl_context_get_glsl_version_string (GdkGLContext *self) return "#version 310 es"; else if (gdk_gl_version_greater_equal (&priv->gl_version, &GDK_GL_VERSION_INIT (3, 0))) return "#version 300 es"; - else if (gdk_gl_version_greater_equal (&priv->gl_version, &GDK_GL_VERSION_INIT (3, 0))) - return "#version 300 es"; else return "#version 100"; }