gallium/osmesa: Return cleanly for OSMesaGetDepthBuffer() with no depth.
authorEric Anholt <eric@anholt.net>
Thu, 3 Dec 2020 01:03:33 +0000 (17:03 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 5 Dec 2020 00:01:00 +0000 (16:01 -0800)
commitef9362acb81bd8615cd2f9014ca9880ae3d7e738
tree38d966b57fae573b2f9ecfeb1d1004d7c4573deb
parentddbad3f4eae3e3b2ed41d8c541c01a0fb21a6e90
gallium/osmesa: Return cleanly for OSMesaGetDepthBuffer() with no depth.

This makes our behavior match classic.

Closes: #2034
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7886>
src/gallium/frontends/osmesa/osmesa.c
src/gallium/targets/osmesa/test-render.cpp