mesa: set additional fields in _mesa_buffer_map_range()

This commit is contained in:
Brian Paul 2009-08-31 09:12:04 -06:00
parent d1da8acd82
commit 2b6ab615a4
1 changed files with 5 additions and 3 deletions

View File

@ -445,11 +445,13 @@ _mesa_buffer_map_range( GLcontext *ctx, GLenum target, GLintptr offset,
{
(void) ctx;
(void) target;
(void) access;
(void) length;
assert(!_mesa_bufferobj_mapped(bufObj));
/* Just return a direct pointer to the data */
return bufObj->Data + offset;
bufObj->Pointer = bufObj->Data + offset;
bufObj->Length = length;
bufObj->Offset = offset;
bufObj->AccessFlags = access;
return bufObj->Pointer;
}