sys: Revert GLSL version back to 150 on macOS

Fixes #632
This commit is contained in:
WerWolv 2022-08-02 13:12:12 +02:00
parent 55d046fa36
commit c8edb6ec6c
2 changed files with 11 additions and 2 deletions

View File

@ -206,7 +206,12 @@ namespace hex::init {
ImGui::StyleColorsDark();
ImGui_ImplGlfw_InitForOpenGL(this->m_window, true);
ImGui_ImplOpenGL3_Init("#version 130");
#if defined(OS_MACOS)
ImGui_ImplOpenGL3_Init("#version 150");
#else
ImGui_ImplOpenGL3_Init("#version 130");
#endif
auto &io = ImGui::GetIO();

View File

@ -744,7 +744,11 @@ namespace hex {
ImGui_ImplGlfw_InitForOpenGL(this->m_window, true);
ImGui_ImplOpenGL3_Init("#version 130");
#if defined(OS_MACOS)
ImGui_ImplOpenGL3_Init("#version 150");
#else
ImGui_ImplOpenGL3_Init("#version 130");
#endif
for (const auto &plugin : PluginManager::getPlugins())
plugin.setImGuiContext(ImGui::GetCurrentContext());