summaryrefslogtreecommitdiff
path: root/shared_cpp/Shader.h
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-06-17 20:02:20 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-06-17 20:02:20 -0400
commit4079e69fe4107d2a50b122dbd58710bbeb10ace2 (patch)
tree2ea0bb6857ad913e54974eb380b3612709559615 /shared_cpp/Shader.h
parent19b0a3cafe144e8e77974bb0c9c63141a812e30d (diff)
(WIP) Getting started in 3d land
Diffstat (limited to 'shared_cpp/Shader.h')
-rw-r--r--shared_cpp/Shader.h3
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
+}