From 4137f287fd4d8778967bb8a82eafe5450687e2b7 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Wed, 31 Aug 2011 19:45:28 +0200 Subject: [PATCH] Fix a critical bug which caused shaders to be redundantly recompiled when disabling per-pixel depth. As a nice side effect, the number of redundant shader compilations is now next to zero ;) --- Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 6d0cc64964..ff82438305 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -124,6 +124,7 @@ void GetPixelShaderId(PIXELSHADERUID *uid, DSTALPHA_MODE dstAlphaMode) { // Courtesy of PreAlphaTest, we're done already ;) // TODO: There's a comment including bpmem.genmode.numindstages.. shouldnt really bother about that though. + uid->tevstages = 1; return; }