From 22011ffd5420e9549469f94c2fda467bff3ddd56 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sat, 10 Oct 2020 12:02:09 +0200 Subject: [PATCH] Avoid extension specific opengl calls (not always working...) --- ImGuiToolkit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImGuiToolkit.cpp b/ImGuiToolkit.cpp index 77f24d6..7cd4069 100644 --- a/ImGuiToolkit.cpp +++ b/ImGuiToolkit.cpp @@ -741,7 +741,7 @@ void ImGuiToolkit::SetFont(ImGuiToolkit::font_style style, const std::string &tt // Font Atlas ImGui Management ImGuiIO& io = ImGui::GetIO(); GLint max = 0; - glGetInternalformativ(GL_TEXTURE_2D, GL_RGBA8, GL_MAX_WIDTH, 1, &max); + glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max); io.Fonts->TexDesiredWidth = max / 2; // optimize use of texture depending on OpenGL drivers // Setup font config