diff options
author | Mathias Fröhlich <[email protected]> | 2018-10-29 06:13:19 +0100 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2018-11-01 06:08:49 +0100 |
commit | 2dc951b7c350868b574694031bb5665767722aed (patch) | |
tree | 33dd672da5195f34b0998958a4fa265aebb27510 /src/mesa | |
parent | 5b41504f66bbe7090ce77d70b17fc3fc36c50533 (diff) |
vbo: Remove the VBO_SAVE_FALLBACK flag.
On finishing a display list playback the VBO_SAVE_FALLBACK bit
is still kept in vbo_save_context::replay_flags. But examining
replay_flags and the display list flags that feed this value
the corresponding bit is never set these days anymore.
So, since it is nowhere set or checked, we can safely remove it.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/vbo/vbo_save.h | 2 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_save_api.c | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index 37f883e9de1..d00700166e8 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -140,8 +140,6 @@ _vbo_save_get_vertex_count(const struct vbo_save_vertex_list *node) #define VBO_SAVE_PRIM_WEAK 0x40 #define VBO_SAVE_PRIM_NO_CURRENT_UPDATE 0x80 -#define VBO_SAVE_FALLBACK 0x10000000 - struct vbo_save_vertex_store { struct gl_buffer_object *bufferobj; fi_type *buffer_map; diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index d5b43d06845..975ba46c8e6 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -1804,12 +1804,8 @@ vbo_save_EndCallList(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; - if (ctx->ListState.CallDepth == 1) { - /* This is correct: want to keep only the VBO_SAVE_FALLBACK - * flag, if it is set: - */ - save->replay_flags &= VBO_SAVE_FALLBACK; - } + if (ctx->ListState.CallDepth == 1) + save->replay_flags = 0; } |