One is about casting a pointer to integer and the other is about an unused
function when HAVE_WAYLAND_BACKEND is not defined.
#ifdef EGL_MESA_drm_image
case EGL_DRM_BUFFER_MESA:
ptex = egl_g3d_reference_drm_buffer(dpy,
- (EGLint) buffer, &gimg->base, attribs);
+ (EGLint) pointer_to_intptr(buffer), &gimg->base, attribs);
break;
#endif
#ifdef EGL_WL_bind_wayland_display
return ((char *) key1 - (char *) key2);
}
+#ifdef HAVE_WAYLAND_BACKEND
+
static int
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,