From 3ebcb9c134aabd33c1b165a263b1c8c80c5266f6 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 30 Dec 2017 16:10:11 +0000 Subject: [Bug fix] Changed int to unsigned. --- yage/render/shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yage/render') 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"); } -- cgit