move destroy fn out of `gl`
This commit is contained in:
parent
bd6d7eb489
commit
04787f1514
|
@ -530,6 +530,10 @@ pub unsafe extern "C" fn PFFilesystemResourceLoaderFromPath(path: *const c_char)
|
||||||
Box::into_raw(Box::new(ResourceLoaderWrapper(loader as Box<dyn ResourceLoader>)))
|
Box::into_raw(Box::new(ResourceLoaderWrapper(loader as Box<dyn ResourceLoader>)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn PFResourceLoaderDestroy(loader: PFResourceLoaderRef) {
|
||||||
|
drop(Box::from_raw(loader))
|
||||||
|
}
|
||||||
|
|
||||||
// `gl`
|
// `gl`
|
||||||
|
|
||||||
|
@ -558,11 +562,6 @@ pub unsafe extern "C" fn PFGLDeviceDestroy(device: PFGLDeviceRef) {
|
||||||
drop(Box::from_raw(device))
|
drop(Box::from_raw(device))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
pub unsafe extern "C" fn PFResourceLoaderDestroy(loader: PFResourceLoaderRef) {
|
|
||||||
drop(Box::from_raw(loader))
|
|
||||||
}
|
|
||||||
|
|
||||||
// `gpu`
|
// `gpu`
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|
Loading…
Reference in New Issue