Fix some EGLDisplay * abuse

EGLDisplays are already opaque pointers, and eglGetDisplay returns an
EGLDisplay not a pointer to one.

Signed-off-by: Adam Jackson <ajax@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=772415
This commit is contained in:
Adam Jackson 2016-10-10 14:10:38 -04:00 committed by Matthias Clasen
parent e11df6cca0
commit 0757914aba
2 changed files with 3 additions and 3 deletions

View File

@ -279,7 +279,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display)
{
GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display);
EGLint major, minor;
EGLDisplay *dpy;
EGLDisplay dpy;
if (display_wayland->have_egl)
return TRUE;

View File

@ -209,7 +209,7 @@ append_glx_extension_row (GtkInspectorGeneral *gen,
#ifdef GDK_WINDOWING_WAYLAND
static void
append_egl_extension_row (GtkInspectorGeneral *gen,
EGLDisplay *dpy,
EGLDisplay dpy,
const gchar *ext)
{
add_check_row (gen, GTK_LIST_BOX (gen->priv->gl_box), ext, epoxy_has_egl_extension (dpy, ext), 0);
@ -250,7 +250,7 @@ init_gl (GtkInspectorGeneral *gen)
if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
{
GdkDisplay *display = gdk_display_get_default ();
EGLDisplay *dpy;
EGLDisplay dpy;
EGLint major, minor;
gchar *version;