Unify UpdateCurrentClut between D3D11 and Vulkan (GLES is still different)

This commit is contained in:
Henrik Rydgård committed 2026-06-11 10:40:21 +02:00
1 parent a875af17a0
commit f034cb45bb
7 files changed
+40 -77

No files matched your search

+1
View File
@@ -147,6 +147,7 @@ void TextureCacheGLES::StartFrame() {
}
}
// TODO: This is almost the same as the Common one, just with some extra color conversion. Should merge.
void TextureCacheGLES::UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) {
const u32 clutBaseBytes = clutFormat == GE_CMODE_32BIT_ABGR8888 ? (clutBase * sizeof(u32)) : (clutBase * sizeof(u16));
// Technically, these extra bytes weren't loaded, but hopefully it was loaded earlier.