Put back the if new frame for overlay.

This commit is contained in:
Mr_Goldberg 2021-01-23 16:46:44 -05:00
parent 671277a154
commit cfff531a23
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
15 changed files with 26 additions and 25 deletions

View file

@ -634,8 +634,9 @@ void ImGui_ImplDX12_Shutdown()
g_frameIndex = UINT_MAX;
}
void ImGui_ImplDX12_NewFrame()
bool ImGui_ImplDX12_NewFrame()
{
if (!g_pPipelineState)
ImGui_ImplDX12_CreateDeviceObjects();
return ImGui_ImplDX12_CreateDeviceObjects();
return true;
}