mesa: set Length/Offset fields in _mesa_buffer_map()
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 15:05:28 +0000 (09:05 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 15:05:28 +0000 (09:05 -0600)
src/mesa/main/bufferobj.c

index 3fd1d17ff9bcea803107f084a39a7d1475edd6fc..165eec019af22d1259d5900f24a74e0bc8baef99 100644 (file)
@@ -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;
 }