[gtk/wip/otte/macos-werror: 2019/2024] glcontext: Avoid gcc warning on non-egl build
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/macos-werror: 2019/2024] glcontext: Avoid gcc warning on non-egl build
- Date: Sat, 10 Sep 2022 01:45:33 +0000 (UTC)
commit 77e8f9aa77d68687f2f84f3dc7a517c1187f37d8
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 3 23:40:33 2021 +0100
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 3f22c00065..cf72604517 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]