[Mesa-dev] [PATCH 1/3] mesa: fix GL error checking in TransformFeedbackVaryings
Marek Olšák
maraeo at gmail.com
Wed Oct 26 09:00:12 PDT 2011
---
src/mesa/main/transformfeedback.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index 47efad1..86fff88 100644
--- 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;
--
1.7.4.1
More information about the mesa-dev
mailing list