projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
136791e
)
osmesa: set RefCount = 1 in new_osmesa_renderbuffer()
author
Brian Paul
<brianp@vmware.com>
Tue, 31 Jan 2012 14:44:53 +0000
(07:44 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 31 Jan 2012 14:44:55 +0000
(07:44 -0700)
This was lost during the renderbuffer overhaul work. Fixes a failed
refcount assertion.
src/mesa/drivers/osmesa/osmesa.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/osmesa/osmesa.c
b/src/mesa/drivers/osmesa/osmesa.c
index 0ec2d377172aaf194632aa924a0f3a5d674e4382..b7672403335ae041a4f9e9eabae8ba4e625c63e8 100644
(file)
--- a/
src/mesa/drivers/osmesa/osmesa.c
+++ b/
src/mesa/drivers/osmesa/osmesa.c
@@
-515,6
+515,7
@@
new_osmesa_renderbuffer(struct gl_context *ctx, GLenum format, GLenum type)
_mesa_init_renderbuffer(&srb->Base, name);
srb->Base.ClassID = OSMESA_RENDERBUFFER_CLASS;
+ srb->Base.RefCount = 1;
srb->Base.Delete = osmesa_delete_renderbuffer;
srb->Base.AllocStorage = osmesa_renderbuffer_storage;