summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2011-12-09 19:14:02 -0600
committerSonicadvance1 <sonicadvance1@RH-Live.(none)>2012-10-09 23:41:05 -0500
commit2fbca145cb9c559fed0be8e57c954e91e803ff8a (patch)
tree0234be5016a8606a7a255b11b381c51f440ea3a6 /Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp
parent4a84c6f742efb7a450d85791cd39d31ee0968812 (diff)
Remove bSupportsGLSLLocation since it won't work how I expect it.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp
index dfa3293a46..d0fb9ec189 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexShaderCache.cpp
@@ -247,11 +247,6 @@ void SetGLSLVSConstant4f(unsigned int const_number, float f1, float f2, float f3
buf[1] = f2;
buf[2] = f3;
buf[3] = f4;
- if(g_ActiveConfig.backend_info.bSupportsGLSLLocation)
- {
- glUniform4fv(const_number, 1, buf);
- return;
- }
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
ProgramShaderCache::SetUniformObjects(1, const_number, buf);
@@ -270,11 +265,6 @@ void SetGLSLVSConstant4f(unsigned int const_number, float f1, float f2, float f3
void SetGLSLVSConstant4fv(unsigned int const_number, const float *f)
{
- if(g_ActiveConfig.backend_info.bSupportsGLSLLocation)
- {
- glUniform4fv(const_number, 1, f);
- return;
- }
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
ProgramShaderCache::SetUniformObjects(1, const_number, f);
@@ -293,11 +283,6 @@ void SetGLSLVSConstant4fv(unsigned int const_number, const float *f)
void SetMultiGLSLVSConstant4fv(unsigned int const_number, unsigned int count, const float *f)
{
- if(g_ActiveConfig.backend_info.bSupportsGLSLLocation)
- {
- glUniform4fv(const_number, count, f);
- return;
- }
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
ProgramShaderCache::SetUniformObjects(1, const_number, f, count);
@@ -324,11 +309,6 @@ void SetMultiGLSLVSConstant3fv(unsigned int const_number, unsigned int count, co
buf[4*i+2] = *f++;
buf[4*i+3] = 0.f;
}
- if(g_ActiveConfig.backend_info.bSupportsGLSLLocation)
- {
- glUniform4fv(const_number, count, buf);
- return;
- }
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
ProgramShaderCache::SetUniformObjects(1, const_number, buf, count);