aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_compositor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c
index 7bf4d7c3..0236c40f 100644
--- a/types/wlr_compositor.c
+++ b/types/wlr_compositor.c
@@ -390,8 +390,7 @@ static void surface_apply_damage(struct wlr_surface *surface) {
}
static void surface_update_opaque_region(struct wlr_surface *surface) {
- struct wlr_texture *texture = wlr_surface_get_texture(surface);
- if (texture == NULL) {
+ if (!surface->has_buffer) {
pixman_region32_clear(&surface->opaque_region);
return;
}