mesa: don't flush vertices in glClientActiveTexture
authorMarek Olšák <marek.olsak@amd.com>
Tue, 20 Jun 2017 00:23:56 +0000 (02:23 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 23 Jun 2017 17:50:20 +0000 (19:50 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texstate.c

index caad77a1cc20de2b91f2c3c977eaa8d1aaedd7ab..269e29194d691027986bfcb15d08e354d407969f 100644 (file)
@@ -349,7 +349,7 @@ _mesa_ClientActiveTexture(GLenum texture)
       return;
    }
 
-   FLUSH_VERTICES(ctx, _NEW_ARRAY);
+   /* Don't flush vertices. This is a "latched" state. */
    ctx->Array.ActiveTexture = texUnit;
 }