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.
This commit is contained in:
Kristian Høgsberg
2012-03-26 11:48:55 -04:00
parent 9a206c4da5
commit 7a011eac73
+1 -1
View File
@@ -442,7 +442,7 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base,
if (surface_is_primary(ec, es)) if (surface_is_primary(ec, es))
return -1; return -1;
if (!es->buffer) if (es->image == EGL_NO_IMAGE_KHR)
return -1; return -1;
if (!drm_surface_transform_supported(es)) if (!drm_surface_transform_supported(es))