From 4079e69fe4107d2a50b122dbd58710bbeb10ace2 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Thu, 17 Jun 2021 20:02:20 -0400 Subject: (WIP) Getting started in 3d land --- shared_cpp/Shader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared_cpp/Shader.h') 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 +} -- cgit v1.2.1