From e004800e684d9aab16b1e9eb5f58c9e2b6146cee Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Sun, 1 Mar 2009 00:57:39 +0000 Subject: [PATCH] An alert is displayed once per run if pixel shaders or vertex shaders fail to compile. Resources are cleaned up if shader compilation fails. Tev coords are zeroed in the pixel shader if there are no tex gens. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2493 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Core/VideoCommon/Src/PixelShaderGen.cpp | 37 +++++++++---------- .../Plugin_VideoOGL/Src/PixelShaderCache.cpp | 8 ++++ .../Plugin_VideoOGL/Src/PixelShaderCache.h | 2 + .../Plugin_VideoOGL/Src/VertexShaderCache.cpp | 10 ++++- .../Plugin_VideoOGL/Src/VertexShaderCache.h | 2 + 5 files changed, 39 insertions(+), 20 deletions(-) diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index c1e68f2279..c13d580106 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -712,25 +712,24 @@ static void WriteStage(char *&p, int n, u32 texture_mask) if(!bHasIndStage) { // calc tevcord //tevcoord.xy = texdim[1].xy * uv1.xy / uv1.z; - int OurTexCoord = 0; - if(bpmem.genMode.numtexgens) - OurTexCoord = texcoord; - else - OurTexCoord = 0; - if (texture_mask & (1<