diff options
| author | degasus <wickmarkus@web.de> | 2013-02-15 13:13:45 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-02-15 13:13:45 +0100 |
| commit | e2593432752dc61403a87a1ddd07f5fe2aa9d0e1 (patch) | |
| tree | 93085ced10ac3ffeca49968290c6ebe2796a64bd /Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | |
| parent | 9f4a616f2ed841808141949451c32b75704ef268 (diff) | |
fix efb copy shaders
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp index 850bd39471..a47ad49181 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp @@ -484,7 +484,7 @@ TextureCache::TextureCache() "void main(){\n" " vec4 texcol = texture2DRect(samp9, uv0);\n" " texcol = round(texcol * colmat[5]) * colmat[6];\n" - " ocol0 = mat4(colmat[0], colmat[1], colmat[2], colmat[3]) * texcol + colmat[4];\n" + " ocol0 = texcol * mat4(colmat[0], colmat[1], colmat[2], colmat[3]) + colmat[4];\n" "}\n"; const char *pDepthMatrixProg = @@ -497,7 +497,7 @@ TextureCache::TextureCache() " vec4 texcol = texture2DRect(samp9, uv0);\n" " vec4 EncodedDepth = fract((texcol.r * (16777215.0f/16777216.0f)) * vec4(1.0f,256.0f,256.0f*256.0f,1.0f));\n" " texcol = round(EncodedDepth * (16777216.0f/16777215.0f) * vec4(255.0f,255.0f,255.0f,15.0f)) / vec4(255.0f,255.0f,255.0f,15.0f);\n" - " ocol0 = mat4(colmat[0], colmat[1], colmat[2], colmat[3]) * texcol + colmat[4];" + " ocol0 = texcol * mat4(colmat[0], colmat[1], colmat[2], colmat[3]) + colmat[4];" "}\n"; |
