mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
GLES: Re-enable texture scaling.
This commit is contained in:
1 parent
2740f74cc4
commit
900e53b6dc
1 file changed
+6
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user