Set cached uniforms default to 0, not 0xFF, since that actually IS the default. trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 31 Jul 2008 19:05:57 -0400
branchtrunk
changeset 440 2af2cb164c2e
parent 439 4713376cb94a
child 441 b33b1492d929
Set cached uniforms default to 0, not 0xFF, since that actually IS the default.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Thu Jul 31 17:57:00 2008 -0400
+++ b/mojoshader_opengl.c	Thu Jul 31 19:05:57 2008 -0400
@@ -1232,7 +1232,7 @@
         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;