mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38: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 {
|
fn get_renderer_ctx() -> &'static mut RendererViewportContext {
|
||||||
unsafe {
|
unsafe {
|
||||||
// should be safe as it is impossible to call any imgui function on a non-active context.
|
// 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)
|
as *mut RendererViewportContext)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user