mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Fixed check for alpha channel in texture to select hqNx upscaling mode
Now it's the initial check with the adjustment in mode indices only, as old hqNx MMX indices (4..6) are now occupied by generic hqNx implementation See http://forum.drdteam.org/viewtopic.php?t=6872
This commit is contained in:
parent
5d099590cd
commit
cbcde3a950
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,8 @@ unsigned char *gl_CreateUpsampledTextureBuffer ( const FTexture *inputTexture, u
|
|||
outWidth = inWidth;
|
||||
outHeight = inHeight;
|
||||
#ifdef HAVE_MMX
|
||||
// ASM-hqNx does not preserve the alpha channel so fall back to C-version for such textures
|
||||
if (!hasAlpha && type > 6 && type <= 9)
|
||||
// hqNx MMX does not preserve the alpha channel so fall back to C-version for such textures
|
||||
if (hasAlpha && type > 6 && type <= 9)
|
||||
{
|
||||
type -= 3;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue