c/util: Fixes crash bug when zero layers are committed
Fixes crash in render_gfx_end_target
with non-compute pipeline path
on android (possibly any platform) when zero layers are committed.
May fully or partially fix #373 (closed), was only able reproduce the crash reported by Meng
Edited by korejan