[gtk/wip/otte/gl-hdr: 3/7] wayland: Remove initial GL API bind




commit 9804d0384b8940b2a739f40ab08c5f9e727e8253
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 6 00:54:36 2021 +0200

    wayland: Remove initial GL API bind
    
    This is leftover from before the addition of GLES support.
    
    GTK works fine without OpenGL and just OpenGLES.

 gdk/wayland/gdkglcontext-wayland.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 896bcc6d5b..e4b93d3edb 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -397,14 +397,6 @@ gdk_wayland_display_init_gl (GdkDisplay  *display,
                              error))
     return NULL;
 
-  if (!eglBindAPI (EGL_OPENGL_API))
-    {
-      g_set_error_literal (error, GDK_GL_ERROR,
-                           GDK_GL_ERROR_NOT_AVAILABLE,
-                           _("No GL implementation is available"));
-      return NULL;
-    }
-
   return g_object_new (GDK_TYPE_WAYLAND_GL_CONTEXT,
                        "display", display,
                        NULL);


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