--- src/mesa/main/depth.c | 8 +------- 1 file changed, 1 insertion(+), 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 ); } -- 1.7.10.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev