mojoshader_opengl.c
branchtrunk
changeset 396 3e9713572fa9
parent 395 d2307cc5d6e7
child 407 620d48c5d13a
--- a/mojoshader_opengl.c	Wed Jun 25 01:27:05 2008 -0400
+++ b/mojoshader_opengl.c	Wed Jun 25 01:29:20 2008 -0400
@@ -1517,7 +1517,7 @@
                 const MOJOSHADER_constant *c = &pd->constants[idx];
                 assert(c->index < size);
                 memcpy(&map->uniform_array_buffer[c->index*4], c->value.f,
-                       sizeof (GLfloat) * 4);
+                       sizeof (c->value.f));
             } // for
 
             GLfloat *current = map->uniform_array_buffer;