radeon: update buffer map/unmap code for changes introduced in 92033a9516 and 822c796481
This commit is contained in:
@@ -187,7 +187,11 @@ radeonMapBuffer(GLcontext * ctx,
|
||||
|
||||
radeon_bo_map(radeon_obj->bo, access == GL_WRITE_ONLY_ARB);
|
||||
|
||||
return obj->Pointer = radeon_obj->bo->ptr;
|
||||
obj->Pointer = radeon_obj->bo->ptr;
|
||||
obj->Length = obj->Size;
|
||||
obj->Offset = 0;
|
||||
|
||||
return obj->Pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -203,9 +207,12 @@ radeonUnmapBuffer(GLcontext * ctx,
|
||||
|
||||
if (radeon_obj->bo != NULL) {
|
||||
radeon_bo_unmap(radeon_obj->bo);
|
||||
obj->Pointer = NULL;
|
||||
}
|
||||
|
||||
obj->Pointer = NULL;
|
||||
obj->Offset = 0;
|
||||
obj->Length = 0;
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user