mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +00:00
Fixed bug in platform_io
This commit is contained in:
parent
6bb28843b2
commit
e3bdcffee0
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user