Mesa (master): mesa: remove spurious flush in _mesa_DepthRange()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Fri Jun 23 14:28:35 UTC 2017


Module: Mesa
Branch: master
Commit: 2f76b45415b3e12a1080bae12acf762006899083
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f76b45415b3e12a1080bae12acf762006899083

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Jun 22 13:55:05 2017 +0200

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 <samuel.pitoiset at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/viewport.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c
index 8c95bf472d..d66fdf26ed 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);
 




More information about the mesa-commit mailing list