mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
fix if statement so clang build can succeed
This commit is contained in:
parent
caacc7c47a
commit
02e94738eb
1 changed files with 2 additions and 2 deletions
|
|
@ -109,8 +109,8 @@ static bool add_plane(struct wlr_drm_backend *drm,
|
|||
for (size_t j = 0; j < drm_plane->count_formats; ++j) {
|
||||
uint32_t fmt = drm_plane->formats[j];
|
||||
|
||||
if (fmt == DRM_FORMAT_ARGB2101010 || DRM_FORMAT_XRGB2101010 ||
|
||||
DRM_FORMAT_ARGB8888) {
|
||||
if (fmt == DRM_FORMAT_ARGB2101010 || fmt == DRM_FORMAT_XRGB2101010 ||
|
||||
fmt == DRM_FORMAT_ARGB8888) {
|
||||
// Prefer formats with 10 bit color and/or alpha channel.
|
||||
rgb_format = fmt;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue