From 7f7487f262046616cf99ba665a83d1a8eae46503 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 22 Jun 2017 14:55:24 +0200 Subject: [PATCH] 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 Reviewed-by: Brian Paul --- src/mesa/main/viewport.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.30.2