mirror of
https://github.com/libretro/Play-.git
synced 2024-11-30 20:21:25 +00:00
Handle missing cases in MakeLinearClut.
This commit is contained in:
parent
b8972dbf78
commit
3d9add3caf
@ -1266,7 +1266,7 @@ void CGSHandler::MakeLinearCLUT(const TEX0& tex0, std::array<uint32, 256>& clut)
|
|||||||
clut[i] = color;
|
clut[i] = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(tex0.nCPSM == PSMCT16)
|
else if(tex0.nCPSM == PSMCT16 || tex0.nCPSM == PSMCT16S)
|
||||||
{
|
{
|
||||||
//CSA is 5-bit, shouldn't go over 31
|
//CSA is 5-bit, shouldn't go over 31
|
||||||
assert(tex0.nCSA < 32);
|
assert(tex0.nCSA < 32);
|
||||||
@ -1296,7 +1296,7 @@ void CGSHandler::MakeLinearCLUT(const TEX0& tex0, std::array<uint32, 256>& clut)
|
|||||||
clut[i] = color;
|
clut[i] = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(tex0.nCPSM == PSMCT16)
|
else if(tex0.nCPSM == PSMCT16 || tex0.nCPSM == PSMCT16S)
|
||||||
{
|
{
|
||||||
for(unsigned int i = 0; i < 256; i++)
|
for(unsigned int i = 0; i < 256; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user