Mesa (master): mesa: don't flush vertices and don' t flag _NEW_DEPTH in ClearDepth
Marek Olšák
mareko at kemper.freedesktop.org
Wed Apr 24 01:31:32 UTC 2013
Module: Mesa
Branch: master
Commit: 629813d9de4a5fc494f8ab172a27240960628780
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=629813d9de4a5fc494f8ab172a27240960628780
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Apr 15 03:40:06 2013 +0200
mesa: don't flush vertices and don't flag _NEW_DEPTH in ClearDepth
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/main/depth.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c
index 8aec94a..ad19834 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 );
}
More information about the mesa-commit
mailing list