From: Brian Paul Date: Mon, 31 Aug 2009 15:12:04 +0000 (-0600) Subject: mesa: set additional fields in _mesa_buffer_map_range() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b6ab615a42bd162b4a870218a5951ca32416c20;p=mesa.git mesa: set additional fields in _mesa_buffer_map_range() --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 165eec019af..ebca798635d 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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; }