mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()
authorBrian Paul <brianp@vmware.com>
Wed, 14 Oct 2015 15:08:50 +0000 (09:08 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 15 Oct 2015 13:21:07 +0000 (07:21 -0600)
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@anholt.net>
src/mesa/main/matrix.c

index 2b8016a..5ff5ac5 100644 (file)
@@ -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: