Fix some minor blunders.

Fixes #4853 (faulty initialization) and fixes #4681 (unsupported GLSL version).
master
Webster Sheets 2020-04-06 15:00:14 -04:00
parent 9d719273fe
commit 8e54a3be06
2 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,7 @@ void Application::Run()
{
Profiler::Clock m_runtime{};
m_runtime.Start();
m_applicationRunning = true;
Startup();

View File

@ -218,7 +218,11 @@ void PiGui::Init(SDL_Window *window)
Error("RENDERER_DUMMY is not a valid renderer, aborting.");
return;
case Graphics::RENDERER_OPENGL_3x:
#ifdef __APPLE__
ImGui_ImplOpenGL3_Init("#version 140");
#else
ImGui_ImplOpenGL3_Init();
#endif
break;
}