mesa: remove spurious flush in _mesa_DepthRange()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Jun 2017 11:55:05 +0000 (13:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Jun 2017 14:26:25 +0000 (16:26 +0200)
I don't think this is actually required, if the depth range
values are different from the ones stored in the context, we
already flush and trigger _NEW_VIEWPORT in
set_depth_range_no_notify().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/viewport.c

index 8c95bf4..d66fdf2 100644 (file)
@@ -319,8 +319,6 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval)
    unsigned i;
    GET_CURRENT_CONTEXT(ctx);
 
-   FLUSH_VERTICES(ctx, 0);
-
    if (MESA_VERBOSE&VERBOSE_API)
       _mesa_debug(ctx, "glDepthRange %f %f\n", nearval, farval);