GLES: Re-enable texture scaling.

This commit is contained in:
Unknown W. Brackets 2018-01-20 09:17:25 -08:00 committed by Henrik Rydgård
parent 2740f74cc4
commit 900e53b6dc

View file

@ -771,9 +771,12 @@ void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &r
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);
}
// TODO: Scale's buffer management doesn't work.
//if (scaleFactor > 1)
// scaler.Scale((uint32_t *)pixelData, dstFmt, w, h, scaleFactor);
if (scaleFactor > 1) {
uint8_t *rearrange = new uint8_t[w * scaleFactor * h * scaleFactor * 4];
scaler.ScaleAlways((u32 *)rearrange, (u32 *)pixelData, dstFmt, w, h, scaleFactor);
pixelData = rearrange;
delete [] finalBuf;
}
if (replacer_.Enabled()) {
ReplacedTextureDecodeInfo replacedInfo;