From: Brian Paul Date: Wed, 14 Oct 2015 15:08:50 +0000 (-0600) Subject: mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode() X-Git-Tag: upstream/17.1.0~15354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0de5e0f3fb0f3671a3ecec6ab4473f9131ecd0ae;p=platform%2Fupstream%2Fmesa.git 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 --- 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: