mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
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:
1 parent
bdc69f5171
commit
653c036ac8
2 files changed
+5
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user