summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-22 13:55:05 +0200
committerSamuel Pitoiset <[email protected]>2017-06-23 16:26:25 +0200
commit2f76b45415b3e12a1080bae12acf762006899083 (patch)
tree07c9f0bc5b03a3071654897b2850d7357dc5e59b /src/mesa/main/viewport.c
parentf314a532fdc7af8381586144d2631d9968331f05 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.c')
-rw-r--r--src/mesa/main/viewport.c2
1 files changed, 0 insertions, 2 deletions
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);