Hi I'm using imgui_impl_dx8 library from C4US source in my project but the client doesn't render itself after D3DERR_DEVICELOST. I couldn't find the problem since debugger doesn't trigger when that happen. Could someone help me please ?
Also here is my reset function
Also here is my reset function
Code:
HRESULT __stdcall DxHook::DxdReset(LPDIRECT3DDEVICE8 device, D3DPRESENT_PARAMETERS* pReset)
{
ImGui_ImplDX8_InvalidateDeviceObjects();
HRESULT ret = ((tDirectReset)DxVTable.at(ResetIndex))(device, pReset);
if (ret >= 0)
ImGui_ImplDX8_CreateDeviceObjects();
return ret;
}