diff options
Diffstat (limited to 'src/gallium/state_trackers/egl/x11')
-rw-r--r-- | src/gallium/state_trackers/egl/x11/native_dri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/x11/native_dri2.c b/src/gallium/state_trackers/egl/x11/native_dri2.c index 9ea3b807be9..5d7d3796e2b 100644 --- a/src/gallium/state_trackers/egl/x11/native_dri2.c +++ b/src/gallium/state_trackers/egl/x11/native_dri2.c @@ -836,6 +836,8 @@ dri2_display_hash_table_compare(void *key1, void *key2) return ((char *) key1 - (char *) key2); } +#ifdef HAVE_WAYLAND_BACKEND + static int dri2_display_authenticate(void *user_data, uint32_t magic) { @@ -845,8 +847,6 @@ dri2_display_authenticate(void *user_data, uint32_t magic) return x11_screen_authenticate(dri2dpy->xscr, magic); } -#ifdef HAVE_WAYLAND_BACKEND - static struct wayland_drm_callbacks wl_drm_callbacks = { dri2_display_authenticate, egl_g3d_wl_drm_helper_reference_buffer, |