summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-03-26 11:48:55 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-03-26 11:48:55 -0400
commit7a011eac73a30ac9fd33eb288fac9155bebda55f (patch)
tree7de57b6bee18c7b103763531ca130e9030f0e8f8
parent9a206c4da528b49debcda522b5001e0aeb095b87 (diff)
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.
-rw-r--r--src/compositor-drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 9046f30..4305cd5 100644
--- a/src/compositor-drm.c
+++ b/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))