color-representation-v1: fix condition in surface commit

This commit is contained in:
Steve Williams 2026-02-07 08:36:29 +04:00
parent ef88246642
commit 436bcf9a47

View file

@ -242,7 +242,7 @@ static void surface_synced_commit(struct wlr_surface_synced *synced) {
}
uint32_t drm_format = DRM_FORMAT_INVALID;
if (!color_repr->surface->buffer){
if (color_repr->surface->buffer){
drm_format = buffer_get_drm_format(&color_repr->surface->buffer->base);
}
if (drm_format == DRM_FORMAT_INVALID) {