mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
mesa/vbo: remove unused vbo_context->binding
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15765>
This commit is contained in:
parent
feea8fed44
commit
1ef734cde6
2 changed files with 0 additions and 7 deletions
|
|
@ -3062,7 +3062,6 @@ struct gl_client_attrib_node
|
|||
* The VBO module implemented in src/vbo.
|
||||
*/
|
||||
struct vbo_context {
|
||||
struct gl_vertex_buffer_binding binding;
|
||||
struct gl_array_attributes current[VBO_ATTRIB_MAX];
|
||||
|
||||
struct gl_vertex_array_object *VAO;
|
||||
|
|
|
|||
|
|
@ -155,10 +155,6 @@ _vbo_CreateContext(struct gl_context *ctx)
|
|||
|
||||
memset(vbo, 0, sizeof(*vbo));
|
||||
|
||||
vbo->binding.Offset = 0;
|
||||
vbo->binding.Stride = 0;
|
||||
vbo->binding.InstanceDivisor = 0;
|
||||
|
||||
init_legacy_currval(ctx);
|
||||
init_generic_currval(ctx);
|
||||
init_mat_currval(ctx);
|
||||
|
|
@ -191,8 +187,6 @@ _vbo_DestroyContext(struct gl_context *ctx)
|
|||
struct vbo_context *vbo = vbo_context(ctx);
|
||||
|
||||
if (vbo) {
|
||||
_mesa_reference_buffer_object(ctx, &vbo->binding.BufferObj, NULL);
|
||||
|
||||
vbo_exec_destroy(ctx);
|
||||
if (ctx->API == API_OPENGL_COMPAT)
|
||||
vbo_save_destroy(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue