mirror of
https://github.com/swaywm/sway.git
synced 2025-01-22 00:36:40 +00:00
parent
a1838c5522
commit
c7c0a5a1b3
|
@ -783,7 +783,8 @@ static bool search_render_format(struct search_context *ctx, size_t output_idx)
|
|||
if (needed_bits < format_bits) {
|
||||
continue;
|
||||
}
|
||||
if (!wlr_drm_format_set_get(primary_formats, fmts[idx])) {
|
||||
// If primary_formats is NULL, all formats are supported
|
||||
if (primary_formats && !wlr_drm_format_set_get(primary_formats, fmts[idx])) {
|
||||
// This is not a supported format for this output
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue