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