Handle missing cases in MakeLinearClut.

This commit is contained in:
Jean-Philip Desjardins 2017-04-15 23:21:39 -04:00
parent b8972dbf78
commit 3d9add3caf

View File

@ -1266,7 +1266,7 @@ void CGSHandler::MakeLinearCLUT(const TEX0& tex0, std::array<uint32, 256>& clut)
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
assert(tex0.nCSA < 32);
@ -1296,7 +1296,7 @@ void CGSHandler::MakeLinearCLUT(const TEX0& tex0, std::array<uint32, 256>& clut)
clut[i] = color;
}
}
else if(tex0.nCPSM == PSMCT16)
else if(tex0.nCPSM == PSMCT16 || tex0.nCPSM == PSMCT16S)
{
for(unsigned int i = 0; i < 256; i++)
{