@@ -88,7 +88,7 @@ void ImGuiRenderer::LoadFontsFromDefs() {
8888 if (item.is_object ()) {
8989 if (item.contains (" name" ) && item.contains (" size" ) && item[" name" ].is_string () && item[" size" ].is_number ()) {
9090 auto fontName = item[" name" ].template get <std::string>();
91- auto pathToFont = std ::format (" {}/fonts/{}.ttf" , m_assetsBasePath, fontName);
91+ auto pathToFont = fmt ::format (" {}/fonts/{}.ttf" , m_assetsBasePath, fontName);
9292 auto fontSize = item[" size" ].template get <int >();
9393
9494 if (!m_fontDefMap.contains (fontName)) {
@@ -111,7 +111,7 @@ void ImGuiRenderer::LoadFontsFromDefs() {
111111 icons_config.MergeMode = true ;
112112 icons_config.PixelSnapH = true ;
113113 icons_config.GlyphMinAdvanceX = iconFontSize;
114- auto pathToFaFontFile = std ::format (" {}/fonts/{}" , m_assetsBasePath, FONT_ICON_FILE_NAME_FAS);
114+ auto pathToFaFontFile = fmt ::format (" {}/fonts/{}" , m_assetsBasePath, FONT_ICON_FILE_NAME_FAS);
115115 // auto pathToMdiFontFile = std::format("assets/fonts/{}", FONT_ICON_FILE_NAME_MDI);
116116
117117 io.Fonts ->AddFontFromFileTTF (pathToFaFontFile.c_str (), iconFontSize, &icons_config, icons_ranges);
@@ -150,7 +150,7 @@ void ImGuiRenderer::LoadFontsFromDefs() {
150150 icons_config.MergeMode = true ;
151151 icons_config.PixelSnapH = true ;
152152 icons_config.GlyphMinAdvanceX = iconFontSize;
153- auto pathToFaFontFile = std ::format (" assets/fonts/{}" , FONT_ICON_FILE_NAME_FAS);
153+ auto pathToFaFontFile = fmt ::format (" assets/fonts/{}" , FONT_ICON_FILE_NAME_FAS);
154154
155155 m_loadedFonts.push_back (
156156 io.Fonts ->AddFontFromFileTTF (pathToFaFontFile.c_str (), iconFontSize, &icons_config, icons_ranges)
@@ -203,11 +203,12 @@ void ImGuiRenderer::InitGlfw() {
203203 // This needs to be done explicitly later.
204204 glfwWindowHint (GLFW_CLIENT_API, GLFW_NO_API);
205205#else
206- const char * glsl_version = " #version 150" ;
207- glfwWindowHint (GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only
208- glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
206+ // GL 3.0 + GLSL 130
207+ const char * glsl_version = " #version 130" ;
209208 glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 3 );
210- glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 2 );
209+ glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 0 );
210+ // glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only
211+ // glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // 3.0+ only
211212#endif
212213
213214 m_glfwWindow = glfwCreateWindow (m_window_width, m_window_height, m_glWindowTitle, nullptr , nullptr );
@@ -390,7 +391,7 @@ void ImGuiRenderer::SetCurrentContext() {
390391void ImGuiRenderer::HandleNextImageJob () {
391392 auto & [widgetId, url] = m_xframes->m_imageJobs .front ();
392393
393- auto pathToFile = std ::format (" {}/{}" , m_assetsBasePath, url);
394+ auto pathToFile = fmt ::format (" {}/{}" , m_assetsBasePath, url);
394395
395396 FILE* f = fopen (pathToFile.c_str (), " rb" );
396397 if (f == NULL ) {
0 commit comments