mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GLES: Re-enable texture scaling.
This commit is contained in:
parent
2740f74cc4
commit
900e53b6dc
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue