Fixes, state invalidation

This commit is contained in:
Henrik Rydgård committed 2022-08-03 22:23:07 +02:00
1 parent f8e0c09463
commit f84d2e9ba7
3 files changed
+9 -8

No files matched your search

+1 -3
View File
@@ -795,13 +795,11 @@ void PresentationCommon::CopyToOutput(OutputFlags flags, int uvRotation, float u
draw_->DrawIndexed(6, 0);
}
draw_->BindIndexBuffer(nullptr, 0);
DoRelease(srcFramebuffer_);
DoRelease(srcTexture_);
// Unbinds all textures and samplers too, needed since sometimes a MakePixelTexture is deleted etc.
draw_->BindPipeline(nullptr);
draw_->InvalidateCachedState();
previousUniforms_ = uniforms;
}