GSTextureCache: Attach palette if needed (psm.pal > 0) also when reading part of framebuffer as texture.

This commit is contained in:
Alessandro Vetere 2018-12-10 21:57:03 +01:00 committed by lightningterror
parent f605012659
commit 0a5b1eb75d
1 changed files with 5 additions and 0 deletions

View File

@ -1171,6 +1171,11 @@ GSTextureCache::Source* GSTextureCache::CreateSource(const GIFRegTEX0& TEX0, con
src->m_target = true;
src->m_from_target = dst->m_texture;
src->m_texture->SetScale(scale);
if (psm.pal > 0) {
// Attach palette for GPU texture conversion
AttachPaletteToSource(src, psm.pal, true);
}
}
else if (dst)
{