[Mesa-dev] [PATCH] mesa: Copy bitmask of VBOs in the VAO on gl{Push, Pop}Attrib.

Fredrik Höglund fredrik at kde.org
Fri Aug 5 14:37:12 UTC 2016


On Friday 05 August 2016, Mathias.Froehlich at gmx.net wrote:
> From: Mathias Fröhlich <mathias.froehlich at web.de>
> 
> Hi all,
> 
> The below was found by inspection.
> Please review.
> 
> Thanks
> 
> Mathias
> 
> 
> 
> On gl{Push,Pop}Attrib(GL_CLIENT_VERTEX_ARRAY_BIT) take
> care that gl_vertex_array_object::VertexAttribBufferMask
> matches the bound buffer object in the
> gl_vertex_array_object::VertexBinding array.
> 
> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
> ---
>  src/mesa/main/attrib.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
> index f859191..ff5f0f1 100644
> --- a/src/mesa/main/attrib.c
> +++ b/src/mesa/main/attrib.c
> @@ -1489,6 +1489,8 @@ copy_array_object(struct gl_context *ctx,
>  
>     /* _Enabled must be the same than on push */
>     dest->_Enabled = src->_Enabled;
> +   /* The bitmask of bound VBOs needs to match the VertexBinding array */
> +   dest->VertexAttribBufferMask = src->VertexAttribBufferMask;
>     dest->NewArrays = src->NewArrays;
>  }

Reviewed-by: Fredrik Höglund <fredrik at kde.org>



More information about the mesa-dev mailing list