From: Brian Paul Date: Fri, 2 Apr 2010 04:15:16 +0000 (-0600) Subject: mesa: minor fixes in _mesa_GetTransformFeedbackVarying() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3100f31b747a3294e1e7043ed9a61d8b90bf423a;p=mesa.git mesa: minor fixes in _mesa_GetTransformFeedbackVarying() --- 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; + } }