[Mesa-dev] [PATCH 2/2] mesa: don't flush vertices in glClientActiveTexture

Brian Paul brianp at vmware.com
Thu Jun 22 14:43:19 UTC 2017


On 06/22/2017 06:34 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>   src/mesa/main/texstate.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
> index 0a2883f..bddd04b 100644
> --- a/src/mesa/main/texstate.c
> +++ b/src/mesa/main/texstate.c
> @@ -344,21 +344,21 @@ _mesa_ClientActiveTexture(GLenum texture)
>
>      if (ctx->Array.ActiveTexture == texUnit)
>         return;
>
>      if (texUnit >= ctx->Const.MaxTextureCoordUnits) {
>         _mesa_error(ctx, GL_INVALID_ENUM, "glClientActiveTexture(texture=%s)",
>                     _mesa_enum_to_string(texture));
>         return;
>      }
>
> -   FLUSH_VERTICES(ctx, _NEW_ARRAY);
> +   /* Don't flush vertices. This is a "latched" state. */
>      ctx->Array.ActiveTexture = texUnit;
>   }
>
>
>
>   /**********************************************************************/
>   /*****                    State management                        *****/
>   /**********************************************************************/
>
>
>

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



More information about the mesa-dev mailing list