Fixed window resizing

This commit is contained in:
Dynamitos
2025-04-11 21:02:52 +02:00
parent f4f497194a
commit cc3f36d7fa
17 changed files with 32 additions and 41 deletions
+4 -1
View File
@@ -69,7 +69,10 @@ Framebuffer::Framebuffer(PGraphics graphics, PRenderPass renderPass, Gfx::Render
.layers = 1,
};
VK_CHECK(vkCreateFramebuffer(graphics->getDevice(), &createInfo, nullptr, &handle));
renderArea = VkRect2D{
.offset = {0, 0},
.extent = {width, height},
};
hash = CRC::Calculate(&description, sizeof(FramebufferDescription), CRC::CRC_32());
}