summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_bufferobjects.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-26 14:45:06 +0200
committerMarek Olšák <[email protected]>2013-05-11 23:59:20 +0200
commitf486c52f9e798ea59582e3a346e8e01980550e0c (patch)
treec2579487dc4625428f9bf8089b3906c2d53c7d67 /src/mesa/state_tracker/st_cb_bufferobjects.c
parentb88cebb634d74772fa509f5ca88fb71d397b3d85 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bufferobjects.c')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index c868d5e163e..2e5e253a41f 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -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;
}