From 5cc43137a12fa5868729b7c5616422401a6ec9bf Mon Sep 17 00:00:00 2001 From: Ralgor Date: Sun, 14 Sep 2014 14:43:42 -0500 Subject: [PATCH] Only require OpenGL 3.0 compatibility profile. --- src/gl/shaders/gl_shader.cpp | 2 +- src/gl/system/gl_interface.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gl/shaders/gl_shader.cpp b/src/gl/shaders/gl_shader.cpp index 72815f2e2..3d4afdbcc 100644 --- a/src/gl/shaders/gl_shader.cpp +++ b/src/gl/shaders/gl_shader.cpp @@ -94,7 +94,7 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char * if (lightbuffertype == GL_UNIFORM_BUFFER) { - vp_comb.Format("#version 330 core\n#extension GL_ARB_uniform_buffer_object : require\n#define NUM_UBO_LIGHTS %d\n", lightbuffersize); + vp_comb.Format("#version 130\n#extension GL_ARB_uniform_buffer_object : require\n#define NUM_UBO_LIGHTS %d\n", lightbuffersize); } else { diff --git a/src/gl/system/gl_interface.cpp b/src/gl/system/gl_interface.cpp index af03bf1d1..5d4e8efeb 100644 --- a/src/gl/system/gl_interface.cpp +++ b/src/gl/system/gl_interface.cpp @@ -117,9 +117,9 @@ void gl_LoadExtensions() else Printf("Emulating OpenGL v %s\n", version); // Don't even start if it's lower than 3.0 - if (strcmp(version, "3.3") < 0) + if (strcmp(version, "3.0") < 0) { - I_FatalError("Unsupported OpenGL version.\nAt least OpenGL 3.3 is required to run " GAMENAME ".\n"); + I_FatalError("Unsupported OpenGL version.\nAt least OpenGL 3.0 is required to run " GAMENAME ".\n"); } // add 0.01 to account for roundoff errors making the number a tad smaller than the actual version