[Mesa-dev] [PATCH] mesa: flag _NEW_TEXTURE_OBJECT for GL_TEXTURE_LOD_BIAS_EXT

Nicolai Hähnle nhaehnle at gmail.com
Sun Jul 16 09:10:55 UTC 2017


On 08.07.2017 02:35, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> Only the compatibility profile can set it.
> It was done incorrectly when we split _NEW_TEXTURE.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>


> ---
>   src/mesa/main/texenv.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c
> index ee5171c..2fcaf7c 100644
> --- a/src/mesa/main/texenv.c
> +++ b/src/mesa/main/texenv.c
> @@ -437,21 +437,21 @@ _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param )
>   	 break;
>         default:
>   	 _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname)" );
>   	 return;
>         }
>      }
>      else if (target == GL_TEXTURE_FILTER_CONTROL_EXT) {
>         if (pname == GL_TEXTURE_LOD_BIAS_EXT) {
>   	 if (texUnit->LodBias == param[0])
>   	    return;
> -	 FLUSH_VERTICES(ctx, _NEW_TEXTURE_STATE);
> +	 FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT);
>            texUnit->LodBias = param[0];
>         }
>         else {
>            TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
>   	 return;
>         }
>      }
>      else if (target == GL_POINT_SPRITE_NV) {
>         /* GL_ARB_point_sprite / GL_NV_point_sprite */
>         if (!ctx->Extensions.NV_point_sprite
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list