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

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


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

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

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

---

 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 d66fdf26ed..67735b0862 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);




More information about the mesa-commit mailing list