mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
c/main: Fix incorrect surface format matching
This commit is contained in:
parent
45fd181fdb
commit
159f22e403
|
@ -222,7 +222,7 @@ pick_first_matching_surface_format(const struct comp_target_create_images_info *
|
||||||
for (uint32_t k = 0; k < surface_format_count; k++) {
|
for (uint32_t k = 0; k < surface_format_count; k++) {
|
||||||
if (surface_formats[k].format == format) {
|
if (surface_formats[k].format == format) {
|
||||||
// Perfect match.
|
// Perfect match.
|
||||||
*out_surface_format = surface_formats[i];
|
*out_surface_format = surface_formats[k];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue