summaryrefslogtreecommitdiff
path: root/src/render/Shader.cpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2025-03-29 03:19:35 +0300
committerGitHub <noreply@github.com>2025-03-29 01:19:35 +0100
commit7374a023eff964817c9e5fbe75a661540516f798 (patch)
treee20baf1be8b1affbda443e34126da15f116b4d64 /src/render/Shader.cpp
parenta46576afc32d7fbad6c358cc72ead7f4489d8ea8 (diff)
renderer/opengl: Extract shaders from source (#9600)
--------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
Diffstat (limited to 'src/render/Shader.cpp')
-rw-r--r--src/render/Shader.cpp12
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();
}