From 87d0eb9cf3d0a9cdf3b32443c76c9511be2ad01d Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Mon, 17 Mar 2025 09:12:49 -0400 Subject: [PATCH] update opengl version to 3.2 on linux and update glsl version to 150 --- code/opengl/4ed_opengl_render.cpp | 2 +- code/platform_linux/linux_4ed.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/opengl/4ed_opengl_render.cpp b/code/opengl/4ed_opengl_render.cpp index 1da8691f..b3bec47a 100644 --- a/code/opengl/4ed_opengl_render.cpp +++ b/code/opengl/4ed_opengl_render.cpp @@ -73,7 +73,7 @@ gl__error_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsiz } } -char *gl__header = R"foo(#version 130 +char *gl__header = R"foo(#version 150 )foo"; char *gl__vertex = R"foo( diff --git a/code/platform_linux/linux_4ed.cpp b/code/platform_linux/linux_4ed.cpp index a0bbd0ef..79cbf5c0 100644 --- a/code/platform_linux/linux_4ed.cpp +++ b/code/platform_linux/linux_4ed.cpp @@ -705,8 +705,8 @@ glx_create_context(GLXFBConfig fb_config){ ctx = glXCreateNewContext(linuxvars.dpy, fb_config, GLX_RGBA_TYPE, 0, True); } else { static const int context_attribs[] = { - GLX_CONTEXT_MAJOR_VERSION_ARB, 2, - GLX_CONTEXT_MINOR_VERSION_ARB, 1, + GLX_CONTEXT_MAJOR_VERSION_ARB, 3, + GLX_CONTEXT_MINOR_VERSION_ARB, 2, GLX_CONTEXT_PROFILE_MASK_ARB , GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, #if GL_DEBUG_MODE GLX_CONTEXT_FLAGS_ARB , GLX_CONTEXT_DEBUG_BIT_ARB,