Navigation Menu

Skip to content

Commit

Permalink
Set cached uniforms default to 0, not 0xFF, since that actually IS th…
Browse files Browse the repository at this point in the history
…e default.

--HG--
branch : trunk
  • Loading branch information
icculus committed Jul 31, 2008
1 parent 02af59a commit 2994a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_opengl.c
Expand Up @@ -1232,7 +1232,7 @@ static int build_constants_lists(MOJOSHADER_glProgram *program)
map->uniform_array_buffer = (GLfloat *) Malloc(len);
if (map->uniform_array_buffer == NULL)
return 0;
memset(map->uniform_array_buffer, 0xFF, len);
memset(map->uniform_array_buffer, 0, len);
} // for

return 1;
Expand Down

0 comments on commit 2994a5d

Please sign in to comment.