From: Brian Paul Date: Mon, 31 Aug 2009 15:05:28 +0000 (-0600) Subject: mesa: set Length/Offset fields in _mesa_buffer_map() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1da8acd82190542cef7ffea41517974c0c9cc25;p=mesa.git mesa: set Length/Offset fields in _mesa_buffer_map() --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 3fd1d17ff9b..165eec019af 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -428,6 +428,8 @@ _mesa_buffer_map( GLcontext *ctx, GLenum target, GLenum access, return NULL; } bufObj->Pointer = bufObj->Data; + bufObj->Length = bufObj->Size; + bufObj->Offset = 0; return bufObj->Pointer; }