diff options
Diffstat (limited to 'shared_cpp/Shader.h')
-rw-r--r-- | shared_cpp/Shader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared_cpp/Shader.h b/shared_cpp/Shader.h index 6ee9981..bc81764 100644 --- a/shared_cpp/Shader.h +++ b/shared_cpp/Shader.h @@ -21,6 +21,7 @@ inline GLint getShaderAttribute(const Shader& shader, const GLchar *name) { printf("Getting attribute for shader, name: %d, %s\n", shader, name); GLint uid = glGetAttribLocation(shader, name); if (uid < 0) { + printf("Unable to get attribute %s for shader %d\n", name, shader); return -1; } return uid; @@ -60,4 +61,4 @@ inline void setShaderBVec4(GLint location, bool first, bool second, bool third, inline void setShaderBool(GLint location, bool value) { glUniform1i(location, value); -}
\ No newline at end of file +} |