diff options
| author | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2009-10-31 03:35:36 +0000 |
|---|---|---|
| committer | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2009-10-31 03:35:36 +0000 |
| commit | ec77ba3e99106571cfa70a762bbf570ab459b26c (patch) | |
| tree | e117a5fb841731bfbe60d1a8232575e3f4f992c5 /Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp | |
| parent | 9a5961956064da94e61e64b4c48fc620ffafcafd (diff) | |
fixed z textures, don't know where this is used but a fix is a fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4486 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp index dbae586853..13f8b65156 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/PixelShaderCache.cpp @@ -117,13 +117,10 @@ void PixelShaderCache::Init() "TEMP R0;\n" "TEMP R1;\n" "TEMP R2;\n" - "PARAM K0 = { 65535.0, 255.0 };\n" + "PARAM K0 = { 65535.0, 255.0,1.0};\n" "TEX R2, fragment.texcoord[0], texture[0], RECT;\n" - "MUL R0.x, R2.x, K0.x;\n" - "FRC R0.x, R0.x;\n" - "MUL R0.y, R2.x, K0.y;\n" - "FRC R0.y, R0.y;\n" - "MOV R0.z, R2.x;\n" + "MUL R0, R2.x, K0;\n" + "FRC R0, R0;\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" |
