summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/transformfeedback.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index d988fc6b9a..74519ba38a 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -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;
+ }
}