From dacfed3e118151763e7eb27f9bfab03f2b7dae8f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 25 Apr 2023 22:40:59 +0200 Subject: [PATCH] win32: Remove an outdated check We require GL 3.0, so checking for less than 2.0 makes no sense anymore. --- gdk/win32/gdkglcontext-win32-wgl.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/gdk/win32/gdkglcontext-win32-wgl.c b/gdk/win32/gdkglcontext-win32-wgl.c index 572c2f37b7..1ae9fc2161 100644 --- a/gdk/win32/gdkglcontext-win32-wgl.c +++ b/gdk/win32/gdkglcontext-win32-wgl.c @@ -280,22 +280,6 @@ gdk_win32_display_init_wgl (GdkDisplay *display, display_win32->gl_version = epoxy_gl_version (); - /* We must have OpenGL/WGL 2.0 or later, or have the GL_ARB_shader_objects extension */ - if (display_win32->gl_version < 20) - { - if (!epoxy_has_gl_extension ("GL_ARB_shader_objects")) - { - wglMakeCurrent (NULL, NULL); - wglDeleteContext (display_win32->dummy_context_wgl.hglrc); - - g_set_error_literal (error, GDK_GL_ERROR, - GDK_GL_ERROR_NOT_AVAILABLE, - _("No GL implementation is available")); - - return FALSE; - } - } - display_win32->hasWglARBCreateContext = epoxy_has_wgl_extension (hdc, "WGL_ARB_create_context"); display_win32->hasWglEXTSwapControl =