Merge pull request #10957 from unknownbrackets/depal-bounds2

GPU: Dirty tex when clearing or rendering to self
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2018-06-06 22:22:01 +02:00
commit 03175b74ef
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_;