From cb121dab6696bf31a85d80dc824c0a390bb8ef79 Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Thu, 5 Mar 2009 05:10:25 +0000 Subject: [PATCH] Fix more cases where shader compilation can fail if there are no tex gens. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2556 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Core/VideoCommon/Src/PixelShaderGen.cpp | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 287e5a6300..23a1d57aca 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -476,21 +476,32 @@ const char *GeneratePixelShader(u32 texture_mask, bool has_zbuffer_target, bool // note that we have to scale by the regular texture map's coordinates since this is a texRECT call // (and we have to match with the game's texscale calls) int texcoord = bpmem.tevindref.getTexCoord(i); - if (texture_mask & (1<