diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-10 14:35:37 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-10 14:35:37 -0600 |
| commit | c72a244809ee9e8a645bd1f200138af727d0474b (patch) | |
| tree | 10d9225f68b2c1c44c1b0d7d958b47cccdda0e6d /Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp | |
| parent | 5925feb6e05219be8abb43576fa7e0b639c049f7 (diff) | |
Make sure to support everything even if GPU doesn't.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp index 073e8b430c..37923d2f47 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp @@ -96,9 +96,13 @@ namespace OGL // Dunno why this is needed when I have the binding // points statically set in the shader source + // We should only need these two functions when we don't support binding but do support UBO // Driver Bug? Nvidia GTX 570, 290.xx Driver, Linux x64 - glUniformBlockBinding( entry.program.glprogid, 0, 1 ); - glUniformBlockBinding( entry.program.glprogid, 1, 2 ); + //if(!g_ActiveConfig.backend_info.bSupportsGLSLBinding) + { + glUniformBlockBinding( entry.program.glprogid, 0, 1 ); + glUniformBlockBinding( entry.program.glprogid, 1, 2 ); + } // We cache our uniform locations for now // Once we move up to a newer version of GLSL, ~1.30 |
