From d61ae5a88a9d57272f05edcc716dd2d25b6fd11d Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Fri, 30 Sep 2016 23:11:12 +0200 Subject: [PATCH] PixelShaderGen: Only set dither uid bit if actually used. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 2996ac46ed..b3470a130b 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -171,7 +171,7 @@ PixelShaderUid GetPixelShaderUid(DSTALPHA_MODE dstAlphaMode) g_ActiveConfig.bBBoxEnable && BoundingBox::active; uid_data->rgba6_format = bpmem.zcontrol.pixel_format == PEControl::RGBA6_Z24 && !g_ActiveConfig.bForceTrueColor; - uid_data->dither = bpmem.blendmode.dither; + uid_data->dither = bpmem.blendmode.dither && uid_data->rgba6_format; u32 numStages = uid_data->genMode_numtevstages + 1; @@ -782,7 +782,7 @@ ShaderCode GeneratePixelShaderCode(APIType ApiType, const pixel_shader_uid_data* } // No dithering for RGB8 mode - if (uid_data->dither && uid_data->rgba6_format) + if (uid_data->dither) { // Flipper uses a standard 2x2 Bayer Matrix for 6 bit dithering // Here the matrix is encoded into the two factor constants