From 99e9dc5b8c466267fa53ec6f5d2310b8d0b51c5a Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 17 Jun 2022 14:47:12 -0700 Subject: [PATCH] fix framebuffer size miscalculation with depth attachment --- src/Refresh_Driver_Vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 5250d9f..0e1637f 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -8105,6 +8105,8 @@ static void VULKAN_BeginRenderPass( if (depthStencilAttachmentInfo != NULL) { + texture = (VulkanTexture*) depthStencilAttachmentInfo->texture; + if (texture->dimensions.width < framebufferWidth) { framebufferWidth = texture->dimensions.width;