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:
@@ -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) });
|
||||
|
Reference in New Issue
Block a user