From 1a28262daef76d25d37ac5e8ee6abb599a9cb23a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 27 Apr 2008 04:30:13 -0400 Subject: [PATCH] Fixed wrong type for uniform/attribute locations. --HG-- branch : trunk --- mojoshader_opengl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index 71e0717d..3f254a60 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -90,13 +90,13 @@ typedef struct { MOJOSHADER_shaderType shader_type; MOJOSHADER_uniform *uniform; - GLint location; + GLuint location; } UniformMap; typedef struct { MOJOSHADER_attribute *attribute; - GLint location; + GLuint location; } AttributeMap; struct MOJOSHADER_glProgram @@ -280,7 +280,7 @@ static void lookup_uniforms(MOJOSHADER_glProgram *program, UniformMap *map = &program->uniforms[program->uniform_count]; map->shader_type = shader_type; map->uniform = &u[i]; - map->location = loc; + map->location = (GLuint) loc; program->uniform_count++; } // if } // for @@ -300,7 +300,7 @@ static void lookup_attributes(MOJOSHADER_glProgram *program) { AttributeMap *map = &program->attributes[program->attribute_count]; map->attribute = &a[i]; - map->location = loc; + map->location = (GLuint) loc; program->attribute_count++; } // if } // for