mirror of
https://github.com/swaywm/sway.git
synced 2025-02-07 00:20:44 +00:00
config/output: skip format checks if all are supported
Fixes #8496
(cherry picked from commit c7c0a5a1b3
)
This commit is contained in:
parent
e10dbbaf7d
commit
8753459853
|
@ -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