mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 01:36:57 +00:00
fix(gui): changed OpenGL version for macOS x64 and ARM
This commit is contained in:
parent
f5c383ffe6
commit
fc7746e3a9
1 changed files with 6 additions and 0 deletions
|
|
@ -137,7 +137,13 @@ bool gui::init_imgui(gui::window_t* main_window)
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef __APPLE__ && (__aarch64__)
|
||||
ret = ::ImGui_ImplOpenGL3_Init("#version 120");
|
||||
#elif __APPLE__ && (__x86_64__)
|
||||
ret = ::ImGui_ImplOpenGL3_Init("#version 150");
|
||||
#else
|
||||
ret = ::ImGui_ImplOpenGL3_Init("#version 330");
|
||||
#endif
|
||||
if (false == ret)
|
||||
{
|
||||
LOG_ERROR(Render, "Failed to init OpenGL3: {}", SDL_GetError());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue