mesa: flag _NEW_TEXTURE_OBJECT for GL_TEXTURE_LOD_BIAS_EXT
authorMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jul 2017 21:34:09 +0000 (23:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jul 2017 13:27:14 +0000 (15:27 +0200)
Only the compatibility profile can set it.
It was done incorrectly when we split _NEW_TEXTURE.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/texenv.c

index ee5171c5c6afc3eb19ef0630ed7c3b038c01bb39..2fcaf7c07e4f523ebdedba2652d88ca973443977 100644 (file)
@@ -444,7 +444,7 @@ _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param )
       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 {