mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-24 09:06:39 -04:00
color-representation-v1: fix condition in surface commit
This commit is contained in:
parent
ef88246642
commit
436bcf9a47
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ static void surface_synced_commit(struct wlr_surface_synced *synced) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t drm_format = DRM_FORMAT_INVALID;
|
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);
|
drm_format = buffer_get_drm_format(&color_repr->surface->buffer->base);
|
||||||
}
|
}
|
||||||
if (drm_format == DRM_FORMAT_INVALID) {
|
if (drm_format == DRM_FORMAT_INVALID) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue