Restrict/clarify when framebuffer's alpha can be used as indexed texture.

This commit is contained in:
Jean-Philip Desjardins 2018-09-26 12:38:46 -04:00
parent 61f4ca3d73
commit 4659aff384

View File

@ -90,9 +90,11 @@ CGSH_OpenGL::TEXTURE_INFO CGSH_OpenGL::PrepareTexture(const TEX0& tex0)
canBeUsed = true;
}
//TODO: Describe
//Case: TEX0 point at the start of a frame buffer with the same width
//but uses upper 8-bits (alpha) as an indexed texture (used in Yakuza)
else if(candidateFramebuffer->m_basePtr == tex0.GetBufPtr() &&
candidateFramebuffer->m_width == tex0.GetBufWidth() &&
candidateFramebuffer->m_psm == CGSHandler::PSMCT32 &&
tex0.nPsm == CGSHandler::PSMT8H)
{
canBeUsed = true;