Mesa (master): mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()

Marek Olšák mareko at kemper.freedesktop.org
Sat Oct 17 19:37:59 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Oct 14 09:08:50 2015 -0600

mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()

Changing the matrix mode alone has no effect on rendering and does
not need to trigger a flush or state validation.

Reviewed-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>

---

 src/mesa/main/matrix.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index 2b8016a..5ff5ac5 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -151,7 +151,6 @@ _mesa_MatrixMode( GLenum mode )
 
    if (ctx->Transform.MatrixMode == mode && mode != GL_TEXTURE)
       return;
-   FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
 
    switch (mode) {
    case GL_MODELVIEW:




More information about the mesa-commit mailing list