From b56025e6eb30034eb522049355c3547e0e513ed2 Mon Sep 17 00:00:00 2001 From: magumagu Date: Sun, 25 Jan 2015 23:28:39 -0800 Subject: [PATCH] Don't use boolean negation. --- Source/Core/VideoCommon/TextureConversionShader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index 1c56621dc2..ab7ab643d1 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -93,7 +93,7 @@ static void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType) if (samples == 1) { // With samples == 1, we write out pairs of blocks; one A8R8, one G8B8. - WRITE(p, " bool first = !(uv1.x & %d);\n", blkH * blkW / 2); + WRITE(p, " bool first = (uv1.x & %d) == 0;\n", blkH * blkW / 2); samples = 2; } WRITE(p, " int offset_in_block = uv1.x & %d;\n", (blkH * blkW / samples) - 1);