WE BE RENDERING BABY
This commit is contained in:
@@ -63,6 +63,8 @@ void Swapchain::createSwapchain(GfxDevice* gfxDevice, VkFormat format, std::uint
|
||||
|
||||
// TODO: if re-creation of swapchain is supported, don't forget to call
|
||||
// vkutil::initSwapchainViews here.
|
||||
|
||||
extent = m_swapchain.extent;
|
||||
}
|
||||
|
||||
void Swapchain::recreateSwapchain(const GfxDevice& gfxDevice, VkFormat format, std::uint32_t width, std::uint32_t height, bool vSync) {
|
||||
@@ -98,6 +100,7 @@ void Swapchain::recreateSwapchain(const GfxDevice& gfxDevice, VkFormat format, s
|
||||
imageViews = m_swapchain.get_image_views().value();
|
||||
|
||||
dirty = false;
|
||||
extent = m_swapchain.extent;
|
||||
}
|
||||
|
||||
void Swapchain::cleanup() {
|
||||
|
||||
Reference in New Issue
Block a user