mesa: tidy up renderbuffer RefCount initialisation
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 5 Apr 2017 10:03:47 +0000 (20:03 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 5 Apr 2017 22:17:10 +0000 (08:17 +1000)
commit32141e53d15207888a0282d860c048a5fc815946
treeee98a707578f10556a7b47bd3fef09d1dd31784b
parente75001811e3b66986b4ede165a0fdde703d4f05b
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 <brianp@vmware.com>
src/mesa/drivers/common/meta.c
src/mesa/main/fbobject.c
src/mesa/main/renderbuffer.c