Mesa (master): mesa: minor fixes in _mesa_GetTransformFeedbackVarying()
Brian Paul
brianp at kemper.freedesktop.org
Fri Apr 2 04:20:02 UTC 2010
Module: Mesa
Branch: master
Commit: 3100f31b747a3294e1e7043ed9a61d8b90bf423a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3100f31b747a3294e1e7043ed9a61d8b90bf423a
Author: Brian Paul <brianp at vmware.com>
Date: Thu Apr 1 22:15:16 2010 -0600
mesa: minor fixes in _mesa_GetTransformFeedbackVarying()
---
src/mesa/main/transformfeedback.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index d988fc6..74519ba 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;
+ }
}
More information about the mesa-commit
mailing list