mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
A few minor fixes + buildfix
This commit is contained in:
1 parent
54329ad560
commit
343b9435b9
3 files changed
+4
-3
No files matched your search
@@ -529,7 +529,7 @@ void PSPSetTexture()
|
||||
match = false;
|
||||
|
||||
//TODO: Check more clut parameters, compute clut hash
|
||||
if(match && (format >= GE_TFMT_CLUT4 || format <= GE_TFMT_CLUT32) &&
|
||||
if(match && (format >= GE_TFMT_CLUT4 && format <= GE_TFMT_CLUT32) &&
|
||||
(entry.clutformat != clutformat ||
|
||||
entry.clutaddr != GetClutAddr(clutformat == GE_CMODE_32BIT_ABGR8888 ? 4 : 2) ||
|
||||
entry.cluthash != Memory::Read_U32(entry.clutaddr)))
|
||||
@@ -568,7 +568,7 @@ void PSPSetTexture()
|
||||
entry.hash = *(u32*)texptr;
|
||||
entry.format = format;
|
||||
|
||||
if(format >= GE_TFMT_CLUT4 || format <= GE_TFMT_CLUT32)
|
||||
if(format >= GE_TFMT_CLUT4 && format <= GE_TFMT_CLUT32)
|
||||
{
|
||||
entry.clutformat = clutformat;
|
||||
entry.clutaddr = GetClutAddr(clutformat == GE_CMODE_32BIT_ABGR8888 ? 4 : 2);
|
||||
|
||||
Reference in new issue
Block a user