compositor-drm: Check es->image, not es->buffer when looking for overlays

es->buffer can be NULL if the client destroyed the buffer, but es->image
will be non-NULL if and only if we have a buffer we might use with KMS.
Kristian Høgsberg 13 years ago
parent 9a206c4da5
commit 7a011eac73
  1. 2
      src/compositor-drm.c

@ -442,7 +442,7 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base,
if (surface_is_primary(ec, es))
return -1;
if (!es->buffer)
if (es->image == EGL_NO_IMAGE_KHR)
return -1;
if (!drm_surface_transform_supported(es))

Loading…
Cancel
Save