From 339b25a36290072c9c7f22f24d93a03e55b45fb7 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 23 Oct 2018 08:36:18 -0700 Subject: [PATCH] Fix access to uniforms at index 0 --- libraries/gl/src/gl/GLShaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gl/src/gl/GLShaders.cpp b/libraries/gl/src/gl/GLShaders.cpp index b7e80fbeb4..54a386313b 100644 --- a/libraries/gl/src/gl/GLShaders.cpp +++ b/libraries/gl/src/gl/GLShaders.cpp @@ -14,7 +14,7 @@ using namespace gl; void Uniform::load(GLuint glprogram, int index) { this->index = index; - if (index > 0) { + if (index >= 0) { static const GLint NAME_LENGTH = 1024; GLchar glname[NAME_LENGTH]; memset(glname, 0, NAME_LENGTH);