summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-22 14:55:24 +0200
committerSamuel Pitoiset <[email protected]>2017-06-23 16:26:25 +0200
commit7f7487f262046616cf99ba665a83d1a8eae46503 (patch)
treef4a1c5c1e6f173a6b9340fee72bbd8e9ecc2cbde /src/mesa/main/viewport.c
parent2f76b45415b3e12a1080bae12acf762006899083 (diff)
mesa: remove spurious flush in _mesa_Viewport()
I don't think this is actually required, if the viewport values are different from the ones stored in the context, we already flush and trigger _NEW_VIEWPORT in set_viewport_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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c
index d66fdf26ed5..67735b08629 100644
--- a/src/mesa/main/viewport.c
+++ b/src/mesa/main/viewport.c
@@ -129,7 +129,6 @@ void GLAPIENTRY
_mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
GET_CURRENT_CONTEXT(ctx);
- FLUSH_VERTICES(ctx, 0);
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glViewport %d %d %d %d\n", x, y, width, height);