From: Samuel Pitoiset Date: Thu, 22 Jun 2017 11:55:05 +0000 (+0200) Subject: mesa: remove spurious flush in _mesa_DepthRange() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f76b45415b3e12a1080bae12acf762006899083;p=mesa.git mesa: remove spurious flush in _mesa_DepthRange() 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 Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 8c95bf472d8..d66fdf26ed5 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -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);