Mesa (master): mesa: flag _NEW_TEXTURE_OBJECT for GL_TEXTURE_LOD_BIAS_EXT
Marek Olšák
mareko at kemper.freedesktop.org
Mon Jul 17 13:33:28 UTC 2017
Module: Mesa
Branch: master
Commit: 0d190913bfa55cd22873f0435493f204621fe0cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d190913bfa55cd22873f0435493f204621fe0cd
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jul 4 23:34:09 2017 +0200
mesa: flag _NEW_TEXTURE_OBJECT for GL_TEXTURE_LOD_BIAS_EXT
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 ee5171c5c6..2fcaf7c07e 100644
--- a/src/mesa/main/texenv.c
+++ b/src/mesa/main/texenv.c
@@ -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 {
More information about the mesa-commit
mailing list