mesa: simplify terminating display list loops
authorMarek Olšák <marek.olsak@amd.com>
Wed, 23 Dec 2020 21:51:01 +0000 (16:51 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 Jan 2021 00:12:35 +0000 (00:12 +0000)
commit451fae825839ea9ac68a2ac3fa1b07c85661d63f
tree4da945a07fdae16e1e77c201fc2f537e9f4a6f48
parent64da8777428224366e40605448fd2bf6166a7bda
mesa: simplify terminating display list loops

Remove the done variable and return directly from switches.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8297>
src/mesa/main/dlist.c