Some safety checks to avoid bad combinations, probably not really needed in practice.

This commit is contained in:
Henrik Rydgård committed 2022-07-31 10:43:48 +02:00
1 parent 176b460d76
commit e455d6bcfe
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -414,7 +414,7 @@ void TextureCacheVulkan::ApplyTextureFramebuffer(VirtualFramebuffer *framebuffer
bool expand32 = !gstate_c.Supports(GPU_SUPPORTS_16BIT_FORMATS);
bool depth = channel == NOTIFY_FB_DEPTH;
bool useShaderDepal = framebufferManager_->GetCurrentRenderVFB() != framebuffer && !depth;
bool useShaderDepal = framebufferManager_->GetCurrentRenderVFB() != framebuffer && !depth && !gstate_c.curTextureIs3D;
bool need_depalettize = IsClutFormat(texFormat);