From cbcde3a950abf62d2989063034506ab020b9e00b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 4 Apr 2016 12:10:26 +0300 Subject: [PATCH] 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 --- src/gl/textures/gl_hqresize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/textures/gl_hqresize.cpp b/src/gl/textures/gl_hqresize.cpp index 1563895b54..2118352b76 100644 --- a/src/gl/textures/gl_hqresize.cpp +++ b/src/gl/textures/gl_hqresize.cpp @@ -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; }