vbo: remove redundant code in vbo_exec_fixup_vertex
authorMarek Olšák <marek.olsak@amd.com>
Tue, 11 Feb 2020 02:58:07 +0000 (21:58 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 18 Feb 2020 21:45:34 +0000 (16:45 -0500)
Callers of this function also set FLUSH_STORED_VERTICES for attr == 0.

Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>

src/mesa/vbo/vbo_exec_api.c

index 698663d48f5bd9c463abb64e2fc8ad7b286a5c42..16df956d85d1b4069755328da7524df22e16d97f 100644 (file)
@@ -427,13 +427,6 @@ vbo_exec_fixup_vertex(struct gl_context *ctx, GLuint attr,
 
    exec->vtx.attr[attr].active_size = newSize;
    exec->vtx.attr[attr].type = newType;
-
-   /* Does setting NeedFlush belong here?  Necessitates resetting
-    * vtxfmt on each flush (otherwise flags won't get reset
-    * afterwards).
-    */
-   if (attr == 0)
-      ctx->Driver.NeedFlush |= FLUSH_STORED_VERTICES;
 }