diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-06-17 20:02:20 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-06-17 20:02:20 -0400 |
commit | 4079e69fe4107d2a50b122dbd58710bbeb10ace2 (patch) | |
tree | 2ea0bb6857ad913e54974eb380b3612709559615 /shared_cpp/Shader.h | |
parent | 19b0a3cafe144e8e77974bb0c9c63141a812e30d (diff) |
(WIP) Getting started in 3d land
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 +} |