summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-31 09:05:28 -0600
committerBrian Paul <brianp@vmware.com>2009-08-31 09:05:28 -0600
commitd1da8acd82190542cef7ffea41517974c0c9cc25 (patch)
treec71c1ef3d3dd9eb5644b1de1c8d845b0d6f9842d /src/mesa/main
parent822c7964819ca1fcc270880d4ca8b3de8a4276d0 (diff)
mesa: set Length/Offset fields in _mesa_buffer_map()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/bufferobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 3fd1d17ff9..165eec019a 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;
}