Fixed bug in platform_io

This commit is contained in:
Robin 2022-12-20 13:30:45 +01:00
parent 6bb28843b2
commit e3bdcffee0

View File

@ -173,7 +173,7 @@ fn get_platform_ctx() -> &'static mut PlatformViewportContext {
fn get_renderer_ctx() -> &'static mut RendererViewportContext {
unsafe {
// should be safe as it is impossible to call any imgui function on a non-active context.
&mut *((*(sys::igGetIO() as *const Io)).backend_platform_user_data
&mut *((*(sys::igGetIO() as *const Io)).backend_renderer_user_data
as *mut RendererViewportContext)
}
}