mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 08:22:28 +02:00
Fix access to uniforms at index 0
This commit is contained in:
parent
e125107a9f
commit
339b25a362
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue