Debugger: Fix crash in software renderer.

The clut isn't set by sampler state, it's set normally by the binner.
This commit is contained in:
Unknown W. Brackets committed 2022-01-16 21:53:55 -08:00
1 parent bdc69f5171
commit 653c036ac8
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -174,9 +174,9 @@ struct SamplerID {
uint32_t texBlendColor;
uint32_t clutFormat;
union {
uint8_t *clut;
uint16_t *clut16;
uint32_t *clut32;
const uint8_t *clut;
const uint16_t *clut16;
const uint32_t *clut32;
};
} cached;
+2
View File
@@ -1277,6 +1277,8 @@ bool GetCurrentTexture(GPUDebugBuffer &buffer, int level)
SamplerID id;
ComputeSamplerID(&id);
id.cached.clut = (const u8 *)clut;
Sampler::FetchFunc sampler = Sampler::GetFetchFunc(id);
u8 *texptr = Memory::GetPointer(texaddr);