Merge pull request #360 from scuzqy/fix_oit_core_version

fix: 8.guest.2020.oit: binding point supported since core 4.2
This commit is contained in:
Joey de Vries
2023-06-14 10:16:17 +02:00
committed by GitHub
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__