Mesa (master): vbo: Remove redundant set of DriverFlags.NewArray in vbo_bind_arrays.

Mathias Fröhlich frohlich at kemper.freedesktop.org
Thu Mar 22 04:25:07 UTC 2018


Module: Mesa
Branch: master
Commit: 2887c981405a911a26a4a6c7f989b803cc94dd54
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2887c981405a911a26a4a6c7f989b803cc94dd54

Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date:   Fri Mar 16 06:34:35 2018 +0100

vbo: Remove redundant set of DriverFlags.NewArray in vbo_bind_arrays.

Now that setting vbo...recalculate_inputs also sets the
DriverFlags.NewArray bits into the NewDriverState setting that from
vbo_bind_arrays is redundant.

Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>

---

 src/mesa/vbo/vbo_context.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index 6b4f74d72f..025d6d8de8 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -317,7 +317,6 @@ vbo_bind_arrays(struct gl_context *ctx)
    if (exec->array.recalculate_inputs) {
       /* Finally update the inputs array */
       _vbo_update_inputs(ctx, &vbo->draw_arrays);
-      ctx->NewDriverState |= ctx->DriverFlags.NewArray;
       exec->array.recalculate_inputs = GL_FALSE;
    }
 




More information about the mesa-commit mailing list