RenderBase: Add call to IMGUI_CHECKVERSION()

This commit is contained in:
Pokechu22 2022-01-16 19:15:26 -08:00
parent e58cf36ca1
commit 30a34d06c1
1 changed files with 5 additions and 0 deletions

View File

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