mojoshader_opengl.c
changeset 769 0627038d2032
parent 768 9ba81386bd4d
child 770 b5e545408b02
--- a/mojoshader_opengl.c	Sat Aug 08 20:01:04 2009 -0400
+++ b/mojoshader_opengl.c	Sun Aug 09 14:48:23 2009 -0400
@@ -632,9 +632,6 @@
 
     assert(count > 0);  // shouldn't call this with nothing to do!
 
-    // These should be ordered vertex, then pixel, then geometry.
-    assert(program->uniforms[0].uniform->type == MOJOSHADER_TYPE_VERTEX);
-
     for (i = 0; i < count; i++)
     {
         UniformMap *map = &program->uniforms[i];
@@ -658,6 +655,7 @@
             } // if
             else
             {
+                // These should be ordered vertex, then pixel, then geometry.
                 assert(0 && "Unexpected shader type");
             } // else
 
@@ -1753,9 +1751,6 @@
         GLint *dstb = program->vs_uniforms_bool;
         uint32 i;
 
-        // These should be ordered vertex, then pixel, then geometry.
-        assert(program->uniforms[0].uniform->type == MOJOSHADER_TYPE_VERTEX);
-
         for (i = 0; i < count; i++)
         {
             UniformMap *map = &program->uniforms[i];
@@ -1782,6 +1777,7 @@
                 } // if
                 else
                 {
+                    // Should be ordered vertex, then pixel, then geometry.
                     assert(0 && "Unexpected shader type");
                 } // else