diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-07 22:04:34 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-07 22:04:34 -0600 |
| commit | 33c24f0a15161de23c26c61e2fc6efeb73def6df (patch) | |
| tree | f2c85a605bb4e8d6c5bd7b3f9450fa3ee0bac386 /Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | |
| parent | 164b56ff73c9e850edbac8546a9d4530621082b5 (diff) | |
Almost there.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp index 4a9431a563..d3a1283627 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp @@ -42,6 +42,7 @@ #include "ImageWrite.h" #include "MemoryUtil.h" #include "PixelShaderCache.h" +#include "ProgramShaderCache.h" #include "PixelShaderManager.h" #include "Render.h" #include "Statistics.h" @@ -296,7 +297,13 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo glViewport(0, 0, virtualW, virtualH); - PixelShaderCache::SetCurrentShader((srcFormat == PIXELFMT_Z24) ? PixelShaderCache::GetDepthMatrixProgram() : PixelShaderCache::GetColorMatrixProgram()); + if(g_ActiveConfig.bUseGLSL) + { + ProgramShaderCache::SetBothShaders((srcFormat == PIXELFMT_Z24) ? PixelShaderCache::GetDepthMatrixProgram() : PixelShaderCache::GetColorMatrixProgram(), 0); + PixelShaderCache::SetPSSampler("samp0", 0); + } + else + PixelShaderCache::SetCurrentShader((srcFormat == PIXELFMT_Z24) ? PixelShaderCache::GetDepthMatrixProgram() : PixelShaderCache::GetColorMatrixProgram()); PixelShaderManager::SetColorMatrix(colmat); // set transformation GL_REPORT_ERRORD(); |
