OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27de260
)
mesa: fix GL error checking in TransformFeedbackVaryings
author
Marek Olšák
<maraeo@gmail.com>
Mon, 24 Oct 2011 00:21:48 +0000
(
02:21
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 27 Oct 2011 09:26:19 +0000
(11:26 +0200)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/transformfeedback.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/transformfeedback.c
b/src/mesa/main/transformfeedback.c
index
47efad1
..
86fff88
100644
(file)
--- a/
src/mesa/main/transformfeedback.c
+++ b/
src/mesa/main/transformfeedback.c
@@
-603,7
+603,9
@@
_mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
return;
}
- if (count < 0 || count > ctx->Const.MaxTransformFeedbackSeparateAttribs) {
+ if (count < 0 ||
+ (bufferMode == GL_SEPARATE_ATTRIBS &&
+ count > ctx->Const.MaxTransformFeedbackSeparateAttribs)) {
_mesa_error(ctx, GL_INVALID_VALUE,
"glTransformFeedbackVaryings(count=%d)", count);
return;