From 5e31f22e50a2dddc0b0a7e5b2fcb515c4e574e60 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Fri, 27 Nov 2009 19:42:27 +0000 Subject: small code reorganization. Now efb to ram display correctly but still is misaligned by one pixel please test and give me feedback git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4618 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp') diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp index 4bae505087..0539d148be 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp @@ -118,9 +118,12 @@ void PixelShaderCache::Init() "TEMP R1;\n" "TEMP R2;\n" "PARAM K0 = { 65535.0, 255.0,1.0,16777215.0};\n" + "PARAM K1 = { 0.999999940395355224609375, 1.0000000596046483281045155587504,0.0,0.0};\n" "TEX R2, fragment.texcoord[0], texture[0], RECT;\n" - "MUL R0, R2.x, K0;\n" + "MUL R0, R2.x, K1.x;\n" + "MUL R0, R0.x, K0;\n" "FRC R0, R0;\n" + "MUL R0, R0, K1.y;\n" "DP4 R1.x, R0, program.env[%d];\n" "DP4 R1.y, R0, program.env[%d];\n" "DP4 R1.z, R0, program.env[%d];\n" -- cgit v1.2.3