Skip to content

Commit

Permalink
Merge pull request #360 from scuzqy/fix_oit_core_version
Browse files Browse the repository at this point in the history
fix: 8.guest.2020.oit: binding point supported since core 4.2
  • Loading branch information
JoeyDeVries authored Jun 14, 2023
2 parents ae3d985 + ec4b181 commit 3e94252
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/composite.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader outputs
layout (location = 0) out vec4 frag;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/composite.vs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader inputs
layout (location = 0) in vec3 position;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/screen.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader inputs
in vec2 texture_coords;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/screen.vs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader inputs
layout (location = 0) in vec3 position;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/solid.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader outputs
layout (location = 0) out vec4 frag;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/solid.vs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader inputs
layout (location = 0) in vec3 position;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/transparent.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader outputs
layout (location = 0) out vec4 accum;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/transparent.vs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 400 core
#version 420 core

// shader inputs
layout (location = 0) in vec3 position;
Expand Down
2 changes: 1 addition & 1 deletion src/8.guest/2020/oit/weighted_blended.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 3e94252

Please sign in to comment.