mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
st/mesa: remove dependency on _NEW_BUFFER_OBJECT for vertex arrays
_NEW_BUFFER_OBJECT means glBufferData was called. We can just set our own flag in BufferData. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
b88cebb634
commit
f486c52f9e
2 changed files with 3 additions and 3 deletions
|
|
@ -589,7 +589,7 @@ static void update_array(struct st_context *st)
|
|||
const struct st_tracked_state st_update_array = {
|
||||
"st_update_array", /* name */
|
||||
{ /* dirty */
|
||||
_NEW_BUFFER_OBJECT, /* mesa */
|
||||
0, /* mesa */
|
||||
ST_NEW_VERTEX_ARRAYS | ST_NEW_VERTEX_PROGRAM, /* st */
|
||||
},
|
||||
update_array /* update */
|
||||
|
|
|
|||
|
|
@ -264,8 +264,8 @@ st_bufferobj_data(struct gl_context *ctx,
|
|||
pipe_buffer_write(pipe, st_obj->buffer, 0, size, data);
|
||||
}
|
||||
|
||||
/* BufferData may change a uniform buffer, need to update it */
|
||||
st->dirty.st |= ST_NEW_UNIFORM_BUFFER;
|
||||
/* BufferData may change an array or uniform buffer, need to update it */
|
||||
st->dirty.st |= ST_NEW_VERTEX_ARRAYS | ST_NEW_UNIFORM_BUFFER;
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue