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;
}






