mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 15:45:40 +12:00
Fix render-texture size
Use the width/height provided and not the current `fbSize`. Fixes a division exception.
This commit is contained in:
parent
2f96c1d24d
commit
c77740acf0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue