projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0854b7e
)
mesa: use larger initial refcount for NullBufferObj
author
Brian Paul
<brianp@vmware.com>
Wed, 10 Jun 2009 19:46:04 +0000
(13:46 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 12 Jun 2009 22:01:02 +0000
(16:01 -0600)
Refcounting of the null/default buffer object isn't perfect yet so be
extra safe.
src/mesa/main/shared.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shared.c
b/src/mesa/main/shared.c
index 759883743dae4b3be18c7eac6d795dc3699286d1..731a15404081736cddd7c0722654b086d3e56963 100644
(file)
--- a/
src/mesa/main/shared.c
+++ b/
src/mesa/main/shared.c
@@
-98,7
+98,7
@@
_mesa_alloc_shared_state(GLcontext *ctx)
* XXX with recent/improved refcounting this may not longer be needed.
*/
shared->NullBufferObj = _mesa_new_buffer_object(ctx, 0, 0);
- shared->NullBufferObj->RefCount = 1000;
+ shared->NullBufferObj->RefCount = 1000
* 1000 * 1000
;
shared->ArrayObjects = _mesa_NewHashTable();