vbo: don't set FLUSH_UPDATE_CURRENT for glVertex
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2020 00:19:25 +0000 (19:19 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>

src/mesa/vbo/vbo_exec_api.c

index 5c8db3bca7507f0fbd7b1339176dfe69b6c41b92..0361546972d4f94128907a000f810fff9d62ae01 100644 (file)
@@ -498,8 +498,9 @@ do {                                                                    \
                                                                         \
       /* Set FLUSH_STORED_VERTICES to indicate that there's now */      \
       /* something to draw (not just updating a color or texcoord).*/   \
-      ctx->Driver.NeedFlush |= FLUSH_UPDATE_CURRENT |                   \
-                               FLUSH_STORED_VERTICES;                   \
+      /* Don't set FLUSH_UPDATE_CURRENT because */                      \
+      /* Current.Attrib[VBO_ATTRIB_POS] is never used. */               \
+      ctx->Driver.NeedFlush |= FLUSH_STORED_VERTICES;                   \
                                                                         \
       if (++exec->vtx.vert_count >= exec->vtx.max_vert)                 \
          vbo_exec_vtx_wrap(exec);                                       \