mesa: remove fallback RefCount == 0 pattern
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 21 Apr 2017 03:29:46 +0000 (13:29 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 22 Apr 2017 00:01:15 +0000 (10:01 +1000)
commit622a68ed3e36a6b56db35df62c5913d2d54d5ed6
tree974998286efcf4ed0528766666b54013e8e07c62
parent0cc8c81902dffdd0c2e1f74e7828a6132cb70b9f
mesa: remove fallback RefCount == 0 pattern

We should never get here if this is 0 unless there is a
bug. Replace the check with an assert.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/arrayobj.c
src/mesa/main/bufferobj.c
src/mesa/main/pipelineobj.c
src/mesa/main/samplerobj.c
src/mesa/main/texobj.c
src/mesa/main/transformfeedback.c