diff options
Diffstat (limited to 'src/render/Shader.cpp')
| -rw-r--r-- | src/render/Shader.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/render/Shader.cpp b/src/render/Shader.cpp index 984d8ce3..97bcf761 100644 --- a/src/render/Shader.cpp +++ b/src/render/Shader.cpp @@ -1,17 +1,5 @@ #include "Shader.hpp" -GLint CShader::getUniformLocation(const std::string& unif) { - const auto itpos = m_muUniforms.find(unif); - - if (itpos == m_muUniforms.end()) { - const auto unifLoc = glGetUniformLocation(program, unif.c_str()); - m_muUniforms[unif] = unifLoc; - return unifLoc; - } - - return itpos->second; -} - CShader::~CShader() { destroy(); } |
