commit | 8046a944d084b4ae4e70e61ba50846fd1943247f | [log] [tgz] |
---|---|---|
author | Timothy Arceri <tarceri@itsqueeze.com> | Fri Apr 07 07:55:17 2017 +1000 |
committer | Timothy Arceri <tarceri@itsqueeze.com> | Fri Apr 07 19:48:10 2017 +1000 |
tree | 92ce6d280ffe3dd5b5c95bcdd60a9cf8998ac02f | |
parent | 1c934bc71b36ec33e59f4b7dc1c7d194585a5bd6 [diff] |
mesa: fix renderbuffer leak We don't need to call _mesa_reference_renderbuffer() for the first assignment as refCount starts at 1. For swrast we work around the fact we will indirectly call _mesa_reference_renderbuffer() by resetting refCount to 0. Fixes: 32141e53d1520 (mesa: tidy up renderbuffer RefCount initialisation) Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>