diff options
author | Maciej Cencora <[email protected]> | 2009-11-11 13:00:10 +0100 |
---|---|---|
committer | Maciej Cencora <[email protected]> | 2009-11-14 14:42:34 +0100 |
commit | f6d0993212fac0eb67827716be1ab4a292c8b4e5 (patch) | |
tree | 07988e70b0d80f086e5be7dc766fafb4518658db | |
parent | 084f43c1502db1988ca53494ea590cf1351180ec (diff) |
radeon: fix glBufferSubData
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_buffer_objects.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c index 8fac5c6c512..99d3ec7005e 100644 --- a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c +++ b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c @@ -136,8 +136,13 @@ radeonBufferSubData(GLcontext * ctx, const GLvoid * data, struct gl_buffer_object *obj) { + radeonContextPtr radeon = RADEON_CONTEXT(ctx); struct radeon_buffer_object *radeon_obj = get_radeon_buffer_object(obj); + if (radeon_bo_is_referenced_by_cs(radeon_obj->bo, radeon->cmdbuf.cs)) { + radeon_firevertices(radeon); + } + radeon_bo_map(radeon_obj->bo, GL_TRUE); _mesa_memcpy(radeon_obj->bo->ptr + offset, data, size); |