renderer_vulkan: Fix narrowing byte conversion

Fixes a compilation error on Unix platforms.
This commit is contained in:
Wunkolo 2026-04-26 15:00:34 -07:00
parent a0655d5674
commit 0810828345

View file

@ -1605,7 +1605,7 @@ Framebuffer::Framebuffer(TextureRuntime& runtime, const VideoCore::FramebufferPa
Surface* color, Surface* depth)
: VideoCore::FramebufferParams{params}, instance{runtime.GetInstance()},
res_scale{color ? color->res_scale : (depth ? depth->res_scale : 1u)},
sample_count{color ? color->sample_count : (depth ? depth->sample_count : 1u)} {
sample_count{color ? color->sample_count : (depth ? depth->sample_count : u8(1u))} {
auto& renderpass_cache = runtime.GetRenderpassCache();
if (shadow_rendering && !color) {
return;