From: Samuel Pitoiset Date: Thu, 22 Jun 2017 12:55:24 +0000 (+0200) Subject: mesa: remove spurious flush in _mesa_Viewport() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f7487f262046616cf99ba665a83d1a8eae46503;p=mesa.git 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 --- 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);