mesa: minor fixes in _mesa_GetTransformFeedbackVarying()

This commit is contained in:
Brian Paul
2010-04-01 22:15:16 -06:00
parent 3b49437372
commit 3100f31b74
+10 -1
View 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;
}
}