Browse Source

Change requested OpenGL version to 3.3

Samuel Čavoj 3 years ago
parent
commit
0a2ac22e35

+ 1 - 1
resources/asteroids.f.glsl

@@ -1,4 +1,4 @@
-#version 450 core
+#version 330 core
 
 in vec4 inColor;
 

+ 1 - 1
resources/asteroids.v.glsl

@@ -1,4 +1,4 @@
-#version 450 core
+#version 330 core
 
 in vec2 vertex;
 in vec4 geometry;

+ 2 - 2
resources/particles.f.glsl

@@ -1,4 +1,4 @@
-#version 450 core
+#version 330 core
 
 in vec4 C;
 
@@ -6,4 +6,4 @@ layout (location = 0) out vec4 outColor;
 
 void main() {
     outColor = C;
-}
+}

+ 2 - 2
resources/particles.v.glsl

@@ -1,4 +1,4 @@
-#version 450 core
+#version 330 core
 
 in vec4 color;
 in vec4 position;
@@ -10,4 +10,4 @@ out vec4 C;
 void main() {
     gl_Position = vec4(position.x, position.y * ar, position.zw);
     C = color;
-}
+}

+ 3 - 3
src/game.cc

@@ -102,8 +102,8 @@ Game::Game() {
 
     glfwSetErrorCallback(error_cb);
 
-    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
-    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
+    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
+    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
     glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
     glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
 
@@ -239,4 +239,4 @@ void Game::run() {
         glfwSwapBuffers(window);
 
     }
-}
+}