From 36cc6b105b5299ae07f005feabd8bd6eb34c5257 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 3 Feb 2020 20:44:04 -0500 Subject: mesa: don't use bitfields in _mesa_prim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is better. Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Mathias Fröhlich Part-of: --- src/mesa/vbo/vbo_exec_api.c | 1 - src/mesa/vbo/vbo_save_api.c | 2 -- 2 files changed, 3 deletions(-) (limited to 'src/mesa/vbo') diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index f106fc2d970..698663d48f5 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -818,7 +818,6 @@ vbo_exec_Begin(GLenum mode) exec->vtx.prim[i].begin = 1; exec->vtx.prim[i].end = 0; exec->vtx.prim[i].indexed = 0; - exec->vtx.prim[i].pad = 0; exec->vtx.prim[i].start = exec->vtx.vert_count; exec->vtx.prim[i].count = 0; exec->vtx.prim[i].num_instances = 1; diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 57984684899..8e7ab86bae1 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -737,7 +737,6 @@ wrap_buffers(struct gl_context *ctx) save->prims[0].mode = mode; save->prims[0].begin = 0; save->prims[0].end = 0; - save->prims[0].pad = 0; save->prims[0].start = 0; save->prims[0].count = 0; save->prims[0].num_instances = 1; @@ -1217,7 +1216,6 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode, save->prims[i].mode = mode & VBO_SAVE_PRIM_MODE_MASK; save->prims[i].begin = 1; save->prims[i].end = 0; - save->prims[i].pad = 0; save->prims[i].start = save->vert_count; save->prims[i].count = 0; save->prims[i].num_instances = 1; -- cgit v1.2.3