[gtk/win32-check-shader-support] GDK-Win32: Correct the check for GL_ARB_shader_objects



commit f8d976db2309140efbc82d9c1fb70c52229f703b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Aug 17 16:09:28 2021 +0800

    GDK-Win32: Correct the check for GL_ARB_shader_objects
    
    Use epoxy_has_gl_extension(), not epoxy_has_wgl_extension().

 gdk/win32/gdkglcontext-win32-wgl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/win32/gdkglcontext-win32-wgl.c b/gdk/win32/gdkglcontext-win32-wgl.c
index cf7935a462..3d05fb8907 100644
--- a/gdk/win32/gdkglcontext-win32-wgl.c
+++ b/gdk/win32/gdkglcontext-win32-wgl.c
@@ -294,7 +294,7 @@ gdk_win32_display_init_wgl (GdkDisplay  *display,
   /* 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_wgl_extension (hdc, "GL_ARB_shader_objects"))
+      if (!epoxy_has_gl_extension ("GL_ARB_shader_objects"))
         {
           wglMakeCurrent (NULL, NULL);
           wglDeleteContext (display_win32->dummy_context_wgl.hglrc);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]