mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radeon: fix glBufferSubData
This commit is contained in:
parent
084f43c150
commit
f6d0993212
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue