[Mesa-dev] [PATCH] mesa: invalidate draw state in glPopClientAttrib
Brian Paul
brianp at vmware.com
Wed Sep 3 08:35:06 PDT 2014
On 09/01/2014 12:05 PM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82538
>
> Cc: mesa-stable at lists.freedesktop.org
> ---
> src/mesa/main/attrib.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
> index c656845..2e289b6 100644
> --- a/src/mesa/main/attrib.c
> +++ b/src/mesa/main/attrib.c
> @@ -1488,6 +1488,10 @@ copy_array_attrib(struct gl_context *ctx,
>
> /* skip ArrayBufferObj */
> /* skip IndexBufferObj */
> +
> + /* Invalidate draw state. It will be updated during the next draw. */
> + dest->DrawMethod = DRAW_NONE;
> + dest->_DrawArrays = NULL;
> }
>
> /**
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list