From: Paul Berry Date: Wed, 21 Dec 2011 19:02:50 +0000 (-0800) Subject: mesa: Ensure that Paused is reset to false on EndTransformFeedback. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=08ce48733d9441e1daa779027dbea1ce9964cc77;p=mesa.git mesa: Ensure that Paused is reset to false on EndTransformFeedback. If a client calls BeginTransformFeedback(), then PauseTransformFeedback(), then EndTransformFeedback(), we need to make sure that the transform feedback object is not left in a "paused" state, otherwise the next call to BeginTransformFeedback() will leave transform feedback paused. Reviewed-by: Brian Paul Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 53c09e26544..fea711aa6e0 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -387,6 +387,7 @@ _mesa_EndTransformFeedback(void) FLUSH_VERTICES(ctx, _NEW_TRANSFORM_FEEDBACK); ctx->TransformFeedback.CurrentObject->Active = GL_FALSE; + ctx->TransformFeedback.CurrentObject->Paused = GL_FALSE; ctx->TransformFeedback.CurrentObject->EndedAnytime = GL_TRUE; assert(ctx->Driver.EndTransformFeedback);