summarylogtreecommitdiffstats
path: root/mangohud-opengl2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mangohud-opengl2.patch')
-rw-r--r--mangohud-opengl2.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/mangohud-opengl2.patch b/mangohud-opengl2.patch
new file mode 100644
index 00000000000..a2bf93eec0e
--- /dev/null
+++ b/mangohud-opengl2.patch
@@ -0,0 +1,31 @@
+diff --git a/src/gl/imgui_impl_opengl3.cpp b/src/gl/imgui_impl_opengl3.cpp
+index 2103773..28f24a7 100644
+--- a/src/gl/imgui_impl_opengl3.cpp
++++ b/src/gl/imgui_impl_opengl3.cpp
+@@ -184,7 +184,7 @@ static bool ImGui_ImplOpenGL3_CreateDeviceObjects()
+ glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
+
+ // Parse GLSL version string
+- int glsl_version = 130;
++ int glsl_version = 120;
+ sscanf(g_GlslVersionString, "#version %d", &glsl_version);
+
+ const GLchar* vertex_shader_glsl_120 =
+@@ -422,7 +422,7 @@ bool ImGui_ImplOpenGL3_Init(const char* glsl_version)
+
+ if (!g_IsGLES) {
+ // Not GL ES
+- glsl_version = "#version 130";
++ glsl_version = "#version 120";
+ g_GlVersion = major * 100 + minor * 10;
+ if (major >= 4 && minor >= 1)
+ glsl_version = "#version 410";
+@@ -456,7 +456,7 @@ bool ImGui_ImplOpenGL3_Init(const char* glsl_version)
+ // Store GLSL version string so we can refer to it later in case we recreate shaders.
+ // Note: GLSL version is NOT the same as GL version. Leave this to NULL if unsure.
+ if (glsl_version == NULL)
+- glsl_version = "#version 130";
++ glsl_version = "#version 120";
+
+ IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(g_GlslVersionString));
+ strcpy(g_GlslVersionString, glsl_version);