[gtk/wip/otte/gleanup: 163/182] x11: Remove unused struct member




commit fd3fdd80796db9813d6dd29242ef628a27664ef2
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jun 29 18:44:09 2021 +0200

    x11: Remove unused struct member
    
    We don't care if the GL context is direct at all.

 gdk/x11/gdkglcontext-glx.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-glx.c b/gdk/x11/gdkglcontext-glx.c
index 0df7c40ba8..80bb0ac801 100644
--- a/gdk/x11/gdkglcontext-glx.c
+++ b/gdk/x11/gdkglcontext-glx.c
@@ -43,8 +43,6 @@ struct _GdkX11GLContextGLX
   GLsync frame_fence;
   Damage xdamage;
 #endif
-
-  guint is_direct : 1;
 };
 
 typedef struct _GdkX11GLContextClass    GdkX11GLContextGLXClass;
@@ -659,12 +657,10 @@ gdk_x11_gl_context_glx_realize (GdkGLContext  *context,
   context_glx->attached_drawable = info->glx_drawable ? info->glx_drawable : gdk_x11_surface_get_xid 
(surface);
   context_glx->unattached_drawable = info->dummy_glx ? info->dummy_glx : info->dummy_xwin;
 
-  context_glx->is_direct = glXIsDirect (dpy, context_glx->glx_context);
-
   GDK_DISPLAY_NOTE (display, OPENGL,
             g_message ("Realized GLX context[%p], %s, version: %d.%d",
                        context_glx->glx_context,
-                       context_glx->is_direct ? "direct" : "indirect",
+                       glXIsDirect (dpy, context_glx->glx_context) ? "direct" : "indirect",
                        display_x11->glx_version / 10,
                        display_x11->glx_version % 10));
 


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