Fixed cut-and-paste error.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 08 Aug 2009 00:28:40 -0400
changeset 766 ec2c7509fce4
parent 765 076f3bd42329
child 767 806ba18f23aa
Fixed cut-and-paste error.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Fri Aug 07 23:57:38 2009 -0400
+++ b/mojoshader_opengl.c	Sat Aug 08 00:28:40 2009 -0400
@@ -1341,7 +1341,7 @@
             gltyp *ptr = (gltyp *) Malloc(buflen); \
             if (ptr == NULL) { \
                 return 0; \
-            } else if (shader_type == MOJOSHADER_TYPE_PIXEL) { \
+            } else if (shader_type == MOJOSHADER_TYPE_VERTEX) { \
                 program->vs_uniforms_##typ = ptr; \
                 program->vs_uniforms_##typ##_count = count; \
             } else if (shader_type == MOJOSHADER_TYPE_PIXEL) { \