[Mesa-dev] [PATCH 1/3] mesa: fix GL error checking in TransformFeedbackVaryings
Kenneth Graunke
kenneth at whitecape.org
Wed Oct 26 11:22:39 PDT 2011
On 10/26/2011 09:00 AM, Marek Olšák wrote:
> ---
> 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;
Thanks, Marek!
For the series:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list