radeon: update buffer map/unmap code for changes introduced in 92033a9516 and 822c796481

This commit is contained in:
Maciej Cencora 2009-09-20 13:54:59 +02:00
parent db928a5e91
commit ff5535c521

View file

@ -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;
}