mesa/main: use call_once instead of open-coding
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 10 Jul 2020 11:08:30 +0000 (13:08 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 10:56:03 +0000 (10:56 +0000)
commit34fe561895bed253070b7dadaa86b4473ad7b51a
treeb606f56b2f50dc76e1280daa4670d5e3cf580d0e
parent0a4aa612ba27d6b9e550f7c4a009f30fcfa0c93e
mesa/main: use call_once instead of open-coding

We already have a utility for this, so let's use that instead.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5879>
src/mesa/main/context.c