fix framebuffer size miscalculation with depth attachment
continuous-integration/drone/push Build is passing Details

pull/19/head
cosmonaut 2022-06-17 14:47:12 -07:00
parent 0e7720ccf6
commit 99e9dc5b8c
1 changed files with 2 additions and 0 deletions

View File

@ -8105,6 +8105,8 @@ static void VULKAN_BeginRenderPass(
if (depthStencilAttachmentInfo != NULL) if (depthStencilAttachmentInfo != NULL)
{ {
texture = (VulkanTexture*) depthStencilAttachmentInfo->texture;
if (texture->dimensions.width < framebufferWidth) if (texture->dimensions.width < framebufferWidth)
{ {
framebufferWidth = texture->dimensions.width; framebufferWidth = texture->dimensions.width;