Commit aece8733 authored by Niklas Haas's avatar Niklas Haas

vulkan: fix colorspace selection with user-specified format

This code path was using the wrong struct member.
parent 7145f2f0
......@@ -141,7 +141,7 @@ static bool pick_surf_format(const struct pl_gpu *gpu, const struct vk_ctx *vk,
// Specific format requested by user
if (out_format->format) {
if (vk_map_color_space(out_format->format, space)) {
if (vk_map_color_space(out_format->colorSpace, space)) {
return true;
} else {
PL_ERR(gpu, "User-supplied surface format unsupported: 0x%x",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment