GPU: Dirty tex when clearing or rendering to self.

This way if we're blitting, we'll re-blit.
This commit is contained in:
Unknown W. Brackets committed 2018-06-06 05:52:49 -07:00
1 parent 07e178a2da
commit 61fc1cdcfb
4 files changed
+12

No files matched your search

+3
View File
@@ -570,6 +570,9 @@ void DrawEngineVulkan::DoFlush() {
textureCache_->SetTexture();
gstate_c.Clean(DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS);
textureNeedsApply = true;
} else if (gstate.getTextureAddress(0) == ((gstate.getFrameBufRawAddress() | 0x04000000) & 0x3FFFFFFF)) {
// This catches the case of clearing a texture.
gstate_c.Dirty(DIRTY_TEXTURE_IMAGE);
}
GEPrimitiveType prim = prevPrim_;