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

@ -740,6 +740,12 @@ void VkRenderState::EndFrame()
mStreamBufferWriter.Reset();
}
void VkRenderState::ResetCache()
{
mRenderPassSetups.clear();
mPipelineLayouts.clear();
}
void VkRenderState::EnableDrawBuffers(int count, bool apply)
{
if (mRenderTarget.DrawBuffers != count)