diff -r a4346bb8608b -r f2e508f08997 mojoshader_opengl.c --- a/mojoshader_opengl.c Sun Apr 27 04:01:23 2008 -0400 +++ b/mojoshader_opengl.c Sun Apr 27 04:30:13 2008 -0400 @@ -90,13 +90,13 @@ { 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 @@ 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 @@ { AttributeMap *map = &program->attributes[program->attribute_count]; map->attribute = &a[i]; - map->location = loc; + map->location = (GLuint) loc; program->attribute_count++; } // if } // for