Merge pull request #10375 from Pokechu22/imgui-assert

Externals: Use Common ASSERT for IM_ASSERT
This commit is contained in:
Admiral H. Curtiss 2022-03-26 05:53:59 +01:00 committed by GitHub
commit 379de5de15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View file

@ -971,6 +971,11 @@ void Renderer::RecordVideoMemory()
bool Renderer::InitializeImGui()
{
if (!IMGUI_CHECKVERSION())
{
PanicAlertFmt("ImGui version check failed");
return false;
}
if (!ImGui::CreateContext())
{
PanicAlertFmt("Creating ImGui context failed");