...
 
Commits (2)
    https://gitcode.net/cpp/LearnOpenGL/-/commit/ec4b1814d79ded411f02befe0c7b962cac547744 fix: 8.guest.2020.oit: binding point supported since core 4.2 2023-06-08T00:12:10+08:00 scuzqy scuzqy@outlook.com https://gitcode.net/cpp/LearnOpenGL/-/commit/3e94252892660902bef62068c35253cbe3464c9b Merge pull request #360 from scuzqy/fix_oit_core_version 2023-06-14T10:16:17+02:00 Joey de Vries JoeyDeVries@users.noreply.github.com fix: 8.guest.2020.oit: binding point supported since core 4.2
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 frag;
......
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;
......
#version 400 core
#version 420 core
// shader inputs
in vec2 texture_coords;
......
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;
......
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 frag;
......
#version 400 core
#version 420 core
// shader inputs
layout (location = 0) in vec3 position;
......
#version 400 core
#version 420 core
// shader outputs
layout (location = 0) out vec4 accum;
......
#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__
......