mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-19 06:26:35 +00:00
Viewports: Backends: DirectX9: Allow D3DERR_DEVICELOST on secondary viewports. (#3424)
This commit is contained in:
parent
9d20a5f0a5
commit
d6f3a8848d
@ -408,7 +408,8 @@ static void ImGui_ImplDX9_SwapBuffers(ImGuiViewport* viewport, void*)
|
|||||||
{
|
{
|
||||||
ImGuiViewportDataDx9* data = (ImGuiViewportDataDx9*)viewport->RendererUserData;
|
ImGuiViewportDataDx9* data = (ImGuiViewportDataDx9*)viewport->RendererUserData;
|
||||||
HRESULT hr = data->SwapChain->Present(NULL, NULL, data->d3dpp.hDeviceWindow, NULL, NULL);
|
HRESULT hr = data->SwapChain->Present(NULL, NULL, data->d3dpp.hDeviceWindow, NULL, NULL);
|
||||||
IM_ASSERT(hr == D3D_OK);
|
// Let main application handle D3DERR_DEVICELOST by resetting the device.
|
||||||
|
IM_ASSERT(hr == D3D_OK || hr == D3DERR_DEVICELOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ImGui_ImplDX9_InitPlatformInterface()
|
static void ImGui_ImplDX9_InitPlatformInterface()
|
||||||
|
Loading…
Reference in New Issue
Block a user