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:
alexey.lysiuk 2016-04-04 12:10:26 +03:00 committed by Christoph Oelckers
parent 5d099590cd
commit cbcde3a950
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}