Set the texture dirty flags when binding a new framebuffer.

This commit is contained in:
Henrik Rydgård committed 2020-09-21 08:56:58 +02:00
1 parent 9b283355a3
commit b6efc65c94
5 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -603,7 +603,8 @@ void DrawEngineVulkan::DoFlush() {
int curRenderStepId = renderManager->GetCurrentStepId();
if (lastRenderStepId_ != curRenderStepId) {
// Dirty everything that has dynamic state that will need re-recording.
gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_BLEND_STATE);
gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_BLEND_STATE | DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS);
textureCache_->ForgetLastTexture();
lastRenderStepId_ = curRenderStepId;
}