Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asercja nieudana ImGui g.IO> DeltaTime> = 0.0f
#1
Podobno jest to spowodowane tym, że wołam NewFrame, zanim zdążysz ustawić czas delty.     https://cloud.githubusercontent.com/...a57c1ccb39.png     Kod:   HRESULT (__stdcall hookD3D11Present) (IDXGISwapChain * pSwapChain, UINT SyncInterval, flagi UINT) {if (g_first_load) {auto & pIo = ImGui :: GetIO (); pSwapChain -> GetDevice (__uuidof (pDevice), (void **) i pDevice); pDevice -> GetImmediateContext (& pContext); FW1CreateFactory (FW1_VERSION, & pFW1Factory); pFW1Factory -> CreateFontWrapper (pDevice, L "Tahoma" i pFontWrapper); pFW1Factory -> Release (); ImGui_ImplDX11_Init (hWnd, pDevice, pContext); ImGui_ImplDX11_CreateDeviceObjects (); g_first_load = false; } ImGui_ImplDX11_NewFrame (); if (menu_on) menu_code (); ImGui :: Render (); if (esp_toggle) esp (); return D3D11PresentHook (pSwapChain, SyncInterval, Flagi); }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)