Mesa (master): osmesa: set RefCount = 1 in new_osmesa_renderbuffer()

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 31 06:45:40 PST 2012


Module: Mesa
Branch: master
Commit: 3fc6e4e0254c0bfb643439952f2ceb55193010e7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fc6e4e0254c0bfb643439952f2ceb55193010e7

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan 31 07:44:53 2012 -0700

osmesa: set RefCount = 1 in new_osmesa_renderbuffer()

This was lost during the renderbuffer overhaul work.  Fixes a failed
refcount assertion.

---

 src/mesa/drivers/osmesa/osmesa.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 0ec2d37..b767240 100644
--- 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;
 



More information about the mesa-commit mailing list