aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-15 02:54:58 +0200
committerMarek Olšák <[email protected]>2013-04-24 03:23:23 +0200
commit3975f52eb4ddd2d879fda934f31da033af095dd9 (patch)
tree0e91f29e2a348947a4aa198ba7c540ef9672303c /src
parent1e3b4226851fa66d567a1bb3a7e4d14bef265722 (diff)
mesa: don't flush and don't flag _NEW_STENCIL in ClearStencil, ActiveStencilFace
The functions don't affect driver state. There is no code that would rely on vertices being flushed prior to changing the states, and no code that would check for _NEW_STENCIL before using the states. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/stencil.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
index 33084173138..d76842fb278 100644
--- a/src/mesa/main/stencil.c
+++ b/src/mesa/main/stencil.c
@@ -109,10 +109,6 @@ _mesa_ClearStencil( GLint s )
{
GET_CURRENT_CONTEXT(ctx);
- if (ctx->Stencil.Clear == (GLuint) s)
- return;
-
- FLUSH_VERTICES(ctx, _NEW_STENCIL);
ctx->Stencil.Clear = (GLuint) s;
}
@@ -390,7 +386,6 @@ _mesa_ActiveStencilFaceEXT(GLenum face)
}
if (face == GL_FRONT || face == GL_BACK) {
- FLUSH_VERTICES(ctx, _NEW_STENCIL);
ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 2;
}
else {