diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-11 04:14:56 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-11 04:14:56 +0100 |
commit | f5d4fb1a0b24647a7fa90f5388902fa0e2c5c5d2 (patch) | |
tree | 9a60fb6b94ca1f9f6a7250602648ca4ccece769b /gtk | |
parent | 88b7dfdb1eebddf6be7ecd008b4419661480d645 (diff) | |
download | gtk+-f5d4fb1a0b24647a7fa90f5388902fa0e2c5c5d2.tar.gz |
inspector: Don't use unused variables
Windows-specific refactorings broke this.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/inspector/general.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c index 1c626df87e..eae88c7c20 100644 --- a/gtk/inspector/general.c +++ b/gtk/inspector/general.c @@ -166,17 +166,17 @@ append_egl_extension_row (GtkInspectorGeneral *gen, } #endif + static void init_gl (GtkInspectorGeneral *gen) { #ifdef GDK_WINDOWING_X11 - if (GDK_IS_X11_DISPLAY (display)) + if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) { GdkDisplay *display = gdk_display_get_default (); Display *dpy = GDK_DISPLAY_XDISPLAY (display); int error_base, event_base; gchar *version; - if (!glXQueryExtension (dpy, &error_base, &event_base)) return; @@ -197,7 +197,7 @@ init_gl (GtkInspectorGeneral *gen) else #endif #ifdef GDK_WINDOWING_WAYLAND - if (GDK_IS_WAYLAND_DISPLAY (display)) + if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ())) { GdkDisplay *display = gdk_display_get_default (); EGLDisplay *dpy; |