Fix access to uniforms at index 0

This commit is contained in:
Brad Davis 2018-10-23 08:36:18 -07:00
parent e125107a9f
commit 339b25a362

View file

@ -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);