diff --git a/src/xrEngine/Device_create.cpp b/src/xrEngine/Device_create.cpp index 7f136b7f470..d615c079bf6 100644 --- a/src/xrEngine/Device_create.cpp +++ b/src/xrEngine/Device_create.cpp @@ -46,7 +46,7 @@ void CRenderDevice::Create() FS.update_path(fname, "$game_data$", "shaders.xr"); GEnv.Render->OnDeviceCreate(fname); m_imgui_render = GEnv.RenderFactory->CreateImGuiRender(); - m_imgui_render->OnDeviceCreate(Device.GetImGuiContext()); + m_imgui_render->OnDeviceCreate(GetImGuiContext()); Statistic->OnDeviceCreate(); dwFrame = 0; }