Navigation Menu

Skip to content

Commit

Permalink
Fixed wrong type for uniform/attribute locations.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 27, 2008
1 parent 0685a6b commit 1a28262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojoshader_opengl.c
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a28262

Please sign in to comment.