From 3100f31b747a3294e1e7043ed9a61d8b90bf423a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 1 Apr 2010 22:15:16 -0600 Subject: [PATCH] mesa: minor fixes in _mesa_GetTransformFeedbackVarying() --- src/mesa/main/transformfeedback.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index d988fc6b9ad..74519ba38a6 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; + } } -- 2.30.2