[gtk/wip/otte/gleanup: 26/53] x11: Remove unused struct member
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gleanup: 26/53] x11: Remove unused struct member
- Date: Tue, 13 Jul 2021 03:35:05 +0000 (UTC)
commit 502c08344937500033a2d6584045c7c8ff4b1096
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]