mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()
authorBrian Paul <brianp@vmware.com>
Wed, 14 Oct 2015 15:08:50 +0000 (09:08 -0600)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 17 Oct 2015 17:36:46 +0000 (19:36 +0200)
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>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
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: