projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1da8ac
)
mesa: set additional fields in _mesa_buffer_map_range()
author
Brian Paul
<brianp@vmware.com>
Mon, 31 Aug 2009 15:12:04 +0000
(09:12 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 31 Aug 2009 15:12:04 +0000
(09:12 -0600)
src/mesa/main/bufferobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.c
b/src/mesa/main/bufferobj.c
index 165eec019af22d1259d5900f24a74e0bc8baef99..ebca798635d2c12ffa0a217b7b2cf045456f410c 100644
(file)
--- 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;
}