Previously if image only had single channel only z buffer value was displaying. This isn't handy for cases when you've got single channel buffer which is not a z buffer. Also fixed possible read past the array.
Previously if image only had single channel only z buffer value was displaying. This isn't handy for cases when you've got single channel buffer which is not a z buffer. Also fixed possible read past the array.