From 41b72ffc8bac98e97479064f9e2497ebc118c5da Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Mon, 13 Oct 2008 21:59:51 +0000 Subject: [PATCH] Fixes Wario World for using an Invalid Texture coordinate, Tell me if it breaks anything git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@852 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_VideoOGL/Src/PixelShader.cpp | 21 ++++++++++++------- .../Src/VertexShaderManager.cpp | 4 ---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PixelShader.cpp b/Source/Plugins/Plugin_VideoOGL/Src/PixelShader.cpp index e26fd72580..774645b8ab 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/PixelShader.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/PixelShader.cpp @@ -606,21 +606,26 @@ void WriteStage(char *&p, int n, u32 texture_mask) int texmap = bpmem.tevorders[n/2].getTexMap(n&1); 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<