summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-01 22:15:16 -0600
committerBrian Paul <brianp@vmware.com>2010-04-01 22:17:14 -0600
commit3100f31b747a3294e1e7043ed9a61d8b90bf423a (patch)
tree01e288268e3202b02ce68fe480e4119cb1c3073a /src/mesa
parent3b49437372218e12f4270b750199f8825f9b0f45 (diff)
mesa: minor fixes in _mesa_GetTransformFeedbackVarying()
Diffstat (limited to 'src/mesa')
-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;
+ }
}