Comment 1 for bug 1560498

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Unity8 crashed in mir::graphics::nested::detail::DisplayBuffer::make_current() -> eglMakeCurrent() -> ... -> dri2_image_get_buffers() [platform_mir.c:138]

+static int
+dri2_image_get_buffers(__DRIdrawable *driDrawable,
+ unsigned int format,
+ uint32_t *stamp,
+ void *loaderPrivate,
+ uint32_t buffer_mask,
+ struct __DRIimageList *buffers)
+{
+ struct dri2_egl_surface *dri2_surf = loaderPrivate;
+
+ if (buffer_mask & __DRI_IMAGE_BUFFER_BACK) {
+ if (!dri2_surf->back)
+ return 0;
+
+ buffers->back = ((struct gbm_dri_bo *)dri2_surf->back->bo)->image; <---- HERE (?!)
+ buffers->image_mask = __DRI_IMAGE_BUFFER_BACK;
+
+ return 1;
+ }
+
+ return 0;
+}