summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-31 09:12:04 -0600
committerBrian Paul <brianp@vmware.com>2009-08-31 09:12:04 -0600
commit2b6ab615a42bd162b4a870218a5951ca32416c20 (patch)
treef9133b9426335401affa23601bbcad474050593e /src/mesa
parentd1da8acd82190542cef7ffea41517974c0c9cc25 (diff)
mesa: set additional fields in _mesa_buffer_map_range()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/bufferobj.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 165eec019a..ebca798635 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;
}