[Mesa-dev] [PATCH 7/9] osmesa: tidy up renderbuffer refCount initialisation

Timothy Arceri tarceri at itsqueeze.com
Sat Apr 8 01:04:38 UTC 2017


32141e53d1520 changed _mesa_init_renderbuffer() to set it to 1 for
us.
---
 src/mesa/drivers/osmesa/osmesa.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 356ba71..68fca3e 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -542,21 +542,20 @@ osmesa_renderbuffer_storage(struct gl_context *ctx, struct gl_renderbuffer *rb,
 static struct swrast_renderbuffer *
 new_osmesa_renderbuffer(struct gl_context *ctx, GLenum format, GLenum type)
 {
    const GLuint name = 0;
    struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer);
 
    if (srb) {
       _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;
 
       srb->Base.InternalFormat = GL_RGBA;
       srb->Base._BaseFormat = GL_RGBA;
 
       return srb;
    }
    return NULL;
 }
-- 
2.9.3



More information about the mesa-dev mailing list