wayland: Only pass wl_drm instance to gbm when using gbm platform

This commit is contained in:
Kristian Høgsberg
2013-10-11 15:30:09 -07:00
parent 360a141f24
commit 1d34927061
+2 -1
View File
@@ -1855,7 +1855,8 @@ dri2_bind_wayland_display_wl(_EGLDriver *drv, _EGLDisplay *disp,
/* We have to share the wl_drm instance with gbm, so gbm can convert
* wl_buffers to gbm bos. */
dri2_dpy->gbm_dri->wl_drm = dri2_dpy->wl_server_drm;
if (dri2_dpy->gbm_dri)
dri2_dpy->gbm_dri->wl_drm = dri2_dpy->wl_server_drm;
return EGL_TRUE;
}