mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
fix: 8.guest.2020.oit: binding point supported since core 4.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader outputs
|
||||
layout (location = 0) out vec4 frag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader inputs
|
||||
layout (location = 0) in vec3 position;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader inputs
|
||||
in vec2 texture_coords;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader inputs
|
||||
layout (location = 0) in vec3 position;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader outputs
|
||||
layout (location = 0) out vec4 frag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader inputs
|
||||
layout (location = 0) in vec3 position;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader outputs
|
||||
layout (location = 0) out vec4 accum;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
// shader inputs
|
||||
layout (location = 0) in vec3 position;
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user