mojoshader_opengl.c
branchtrunk
changeset 215 f2e508f08997
parent 213 73935330a973
child 216 f5f4e5f05951
--- 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