+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; +}
+static int get_buffers( __DRIdrawable *driDrawable, BUFFER_ BACK) { surf->back- >bo)->image; <---- HERE (?!) BUFFER_ BACK;
+dri2_image_
+ 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_
+ if (!dri2_surf->back)
+ return 0;
+
+ buffers->back = ((struct gbm_dri_bo *)dri2_
+ buffers->image_mask = __DRI_IMAGE_
+
+ return 1;
+ }
+
+ return 0;
+}