diff options
author | Timothy Arceri <[email protected]> | 2017-04-05 20:03:47 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-04-06 08:17:10 +1000 |
commit | 32141e53d15207888a0282d860c048a5fc815946 (patch) | |
tree | ee98a707578f10556a7b47bd3fef09d1dd31784b /src/mesa/drivers | |
parent | e75001811e3b66986b4ede165a0fdde703d4f05b (diff) |
mesa: tidy up renderbuffer RefCount initialisation
42aaa548 changed the renderbuffer initialisation of RefCount from
1 to 0.
This is inconsitent with how we use RefCount elsewhere. Also every
driver implementation of NewRenderbuffer() calls
_mesa_init_renderbuffer() so its safe to set it there.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index efbc93402e1..f4c91ac22cc 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -3044,8 +3044,6 @@ decompress_texture_image(struct gl_context *ctx, return false; } - decompress_fbo->rb->RefCount = 1; - decompress_fbo->fb = ctx->Driver.NewFramebuffer(ctx, 0xDEADBEEF); if (decompress_fbo->fb == NULL) { _mesa_meta_end(ctx); |