[Mesa-dev] [PATCH 2/5] mesa: Ensure that Paused is reset to false on EndTransformFeedback.

Brian Paul brian.e.paul at gmail.com
Thu Dec 22 09:07:50 PST 2011


On Wed, Dec 21, 2011 at 2:39 PM, Paul Berry <stereotype441 at gmail.com> wrote:
> 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.
> ---
>  src/mesa/main/transformfeedback.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
> index 53c09e2..fea711a 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);

Reviewed-by: Brian Paul <brianp at vmare.com>


More information about the mesa-dev mailing list