aboutsummaryrefslogtreecommitdiffstats
path: root/yage
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-30 16:10:11 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-30 16:10:11 +0000
commit3ebcb9c134aabd33c1b165a263b1c8c80c5266f6 (patch)
tree9176e849b5856719f60b086bfe40e89a6753f7e2 /yage
parent8d0d678ab7460cd92b1a7b923ab565f8ec1a99b1 (diff)
downloadYAGE-3ebcb9c134aabd33c1b165a263b1c8c80c5266f6.tar.gz
YAGE-3ebcb9c134aabd33c1b165a263b1c8c80c5266f6.zip
[Bug fix] Changed int to unsigned.
Diffstat (limited to 'yage')
-rw-r--r--yage/render/shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yage/render/shader.cpp b/yage/render/shader.cpp
index be2e77e2..156c2aa1 100644
--- a/yage/render/shader.cpp
+++ b/yage/render/shader.cpp
@@ -101,7 +101,7 @@ void Shader::setUniform(const std::string &name, const glm::mat4 &matrix) const
GLint Shader::getUniformLocation(const std::string &uniform_name) const
{
- GLint location = glGetUniformLocation(program_id_, uniform_name.c_str());
+ GLuint location = glGetUniformLocation(program_id_, uniform_name.c_str());
if (location == GL_INVALID_INDEX) {
throw std::runtime_error("'" + uniform_name + "' not found");
}