mesa: fix GL error checking in TransformFeedbackVaryings
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user