mesa: minor fixes in _mesa_GetTransformFeedbackVarying()
authorBrian Paul <brianp@vmware.com>
Fri, 2 Apr 2010 04:15:16 +0000 (22:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Apr 2010 04:17:14 +0000 (22:17 -0600)
src/mesa/main/transformfeedback.c

index d988fc6b9ad56a308a3b350a2566a218a7d6d46c..74519ba38a6d40cd6dfc5dfc633f2e9dea8bd2e9 100644 (file)
@@ -418,9 +418,18 @@ _mesa_GetTransformFeedbackVarying(GLuint program, GLuint index,
 
       /* return the datatype and value's size (in datatype units) */
       if (type)
-         *type = param->Type;
+         *type = param->DataType;
       if (size)
          *size = param->Size;
    }
+   else {
+      name[0] = 0;
+      if (length)
+         *length = 0;
+      if (type)
+         *type = 0;
+      if (size)
+         *size = 0;
+   }
 }