From bf3cf8bb2938988b3805d7eb0933b3f3d9a48a4e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 3 Nov 2021 23:40:33 +0100 Subject: [PATCH] glcontext: Avoid gcc warning on non-egl build --- gdk/gdkglcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 040b9cce1a..599b946de9 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -504,8 +504,8 @@ gdk_gl_context_real_is_shared (GdkGLContext *self, static gboolean gdk_gl_context_real_clear_current (GdkGLContext *context) { - GdkDisplay *display = gdk_gl_context_get_display (context); #ifdef HAVE_EGL + GdkDisplay *display = gdk_gl_context_get_display (context); GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context); if (priv->egl_context == NULL)