Fix crash when frame buffers are resized

This commit is contained in:
Magnus Norddahl 2023-08-30 18:53:45 +02:00
commit 370bf24d2c
5 changed files with 19 additions and 0 deletions

View file

@ -492,6 +492,14 @@ void VulkanRenderDevice::WaitForCommands(bool finish)
mCommands->WaitForCommands(finish);
}
void VulkanRenderDevice::ResetRenderStateCache()
{
for (auto& renderstate : mRenderState)
{
renderstate->ResetCache();
}
}
void VulkanRenderDevice::PrintStartupLog()
{
const auto &props = mDevice->PhysicalDevice.Properties.Properties;