projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b49437
)
mesa: minor fixes in _mesa_GetTransformFeedbackVarying()
author
Brian Paul
<brianp@vmware.com>
Fri, 2 Apr 2010 04:15:16 +0000
(22:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Apr 2010 04:17:14 +0000
(22:17 -0600)
src/mesa/main/transformfeedback.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/transformfeedback.c
b/src/mesa/main/transformfeedback.c
index d988fc6b9ad56a308a3b350a2566a218a7d6d46c..74519ba38a6d40cd6dfc5dfc633f2e9dea8bd2e9 100644
(file)
--- 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->
Data
Type;
if (size)
*size = param->Size;
}
+ else {
+ name[0] = 0;
+ if (length)
+ *length = 0;
+ if (type)
+ *type = 0;
+ if (size)
+ *size = 0;
+ }
}