summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2013-10-11 15:30:09 -0700
committerKristian Høgsberg <[email protected]>2013-10-11 15:30:09 -0700
commit1d3492706156b2caa7eb3b84125dbabc999695aa (patch)
tree85eae908c048cb102599c3779310b8f1651c3af7 /src/egl/drivers
parent360a141f24a9d00891665b7fedb77ffb116944ca (diff)
wayland: Only pass wl_drm instance to gbm when using gbm platform
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 18ecdc8df38..1089616946d 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -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;
}