projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360a141
)
wayland: Only pass wl_drm instance to gbm when using gbm platform
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 11 Oct 2013 22:30:09 +0000
(15:30 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 11 Oct 2013 22:30:09 +0000
(15:30 -0700)
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index 18ecdc8df3892b1814fa584db6e0e40dd54db37e..1089616946decde9eab0be7dbb74d62d17e3a315 100644
(file)
--- 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;
}