mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
rusticl: call glsl_type_singleton_init_or_ref
Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
parent
6d8d30660a
commit
7a5817bf8c
1 changed files with 3 additions and 0 deletions
|
|
@ -201,6 +201,9 @@ static mut DEVICES: Vec<Arc<Device>> = Vec::new();
|
|||
static INIT: Once = Once::new();
|
||||
|
||||
fn load_devices() {
|
||||
unsafe {
|
||||
glsl_type_singleton_init_or_ref();
|
||||
}
|
||||
Device::all()
|
||||
.into_iter()
|
||||
.for_each(|d| unsafe { DEVICES.push(d) });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue