[Mesa-dev] [PATCH 2/2] mesa: don't flush vertices in glClientActiveTexture
Marek Olšák
maraeo at gmail.com
Thu Jun 22 12:34:29 UTC 2017
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 *****/
/**********************************************************************/
--
2.7.4
More information about the mesa-dev
mailing list