fix: 8.guest.2020.oit: binding point supported since core 4.2

This commit is contained in:
scuzqy
2023-06-08 00:12:10 +08:00
parent ae3d985d7c
commit ec4b1814d7
9 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 frag;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader inputs
in vec2 texture_coords;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 frag;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 accum;

View File

@@ -1,4 +1,4 @@
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;

View File

@@ -36,7 +36,7 @@ int main(int argc, char* argv[])
// ------------------------------
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
#ifdef __APPLE__