Skip to content

Commit 8d49d1c

Browse files
committed
Fix function type
1 parent b26e532 commit 8d49d1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

unity-native-plugin/src/graphics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use unity_native_plugin_sys::*;
44

55
pub type RenderBuffer = unity_native_plugin_sys::UnityRenderBuffer;
66
pub type TextureID = unity_native_plugin_sys::UnityTextureID;
7-
pub type RenderingEvent = unsafe extern "system" fn(eventId: ::std::os::raw::c_int);
8-
pub type RenderingEventAndData =
9-
unsafe extern "system" fn(eventId: ::std::os::raw::c_int, data: *mut ::std::os::raw::c_void);
7+
pub type RenderingEvent = unity_native_plugin_sys::UnityRenderingEvent;
8+
pub type RenderingEventAndData = unity_native_plugin_sys::UnityRenderingEventAndData;
109

1110
#[repr(u32)]
1211
#[derive(Copy, Clone, PartialEq, Eq)]

0 commit comments

Comments
 (0)