Fix render-texture size

Use the width/height provided and not the current `fbSize`.
Fixes a division exception.
This commit is contained in:
Wunkolo 2023-08-26 22:44:57 -07:00
parent 2f96c1d24d
commit c77740acf0

View file

@ -265,7 +265,7 @@ RendererVK::Texture& RendererVK::getColorRenderTexture(u32 addr, PICA::ColorFmt
Texture& newTexture = textureCache[renderTextureHash];
newTexture.loc = addr;
newTexture.sizePerPixel = PICA::sizePerPixel(format);
newTexture.size = fbSize;
newTexture.size = {width, height};
newTexture.format = Vulkan::colorFormatToVulkan(format);
@ -338,7 +338,7 @@ RendererVK::Texture& RendererVK::getDepthRenderTexture(u32 addr, PICA::DepthFmt
Texture& newTexture = textureCache[renderTextureHash];
newTexture.loc = addr;
newTexture.sizePerPixel = PICA::sizePerPixel(format);
newTexture.size = fbSize;
newTexture.size = {width, height};
newTexture.format = Vulkan::depthFormatToVulkan(format);