glsl: fix incorrect attribute size
authorBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 18:43:09 +0000 (12:43 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 18:50:57 +0000 (12:50 -0600)
src/mesa/shader/slang/slang_link.c

index c5c94a65a24a682cb7152fb04261ca42b7f8ee89..1caf5946fdcba40f7c4b2fd0d5ae5af7b4c2f907 100644 (file)
@@ -445,7 +445,7 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
       if (inputsRead & (1 << i)) {
          _mesa_add_attribute(linkedProg->Attributes,
                              _slang_vert_attrib_name(i),
-                             1, /* size */
+                             4, /* size in floats */
                              _slang_vert_attrib_type(i),
                              -1 /* attrib/input */);
       }