summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-15 03:40:06 +0200
committerMarek Olšák <[email protected]>2013-04-24 03:23:23 +0200
commit629813d9de4a5fc494f8ab172a27240960628780 (patch)
treedaa1979fe8ec64746b6dd127c798993cf930ff2c /src/mesa
parent3975f52eb4ddd2d879fda934f31da033af095dd9 (diff)
mesa: don't flush vertices and don't flag _NEW_DEPTH in ClearDepth
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/depth.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c
index 8aec94a2d30..ad19834e195 100644
--- a/src/mesa/main/depth.c
+++ b/src/mesa/main/depth.c
@@ -46,13 +46,7 @@ _mesa_ClearDepth( GLclampd depth )
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glClearDepth(%f)\n", depth);
- depth = CLAMP( depth, 0.0, 1.0 );
-
- if (ctx->Depth.Clear == depth)
- return;
-
- FLUSH_VERTICES(ctx, _NEW_DEPTH);
- ctx->Depth.Clear = depth;
+ ctx->Depth.Clear = CLAMP( depth, 0.0, 1.0 );
}