[Mesa-dev] [PATCH 01/10] mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()

Brian Paul brianp at vmware.com
Wed Oct 14 16:24:33 PDT 2015


Changing the matrix mode alone has no effect on rendering and does
not need to trigger a flush or state validation.
---
 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:
-- 
1.9.1



More information about the mesa-dev mailing list