From ec4b1814d79ded411f02befe0c7b962cac547744 Mon Sep 17 00:00:00 2001 From: scuzqy Date: Thu, 8 Jun 2023 00:12:10 +0800 Subject: [PATCH] fix: 8.guest.2020.oit: binding point supported since core 4.2 --- src/8.guest/2020/oit/composite.fs | 2 +- src/8.guest/2020/oit/composite.vs | 2 +- src/8.guest/2020/oit/screen.fs | 2 +- src/8.guest/2020/oit/screen.vs | 2 +- src/8.guest/2020/oit/solid.fs | 2 +- src/8.guest/2020/oit/solid.vs | 2 +- src/8.guest/2020/oit/transparent.fs | 2 +- src/8.guest/2020/oit/transparent.vs | 2 +- src/8.guest/2020/oit/weighted_blended.cpp | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/8.guest/2020/oit/composite.fs b/src/8.guest/2020/oit/composite.fs index ad6c655c6..e760c72ed 100644 --- a/src/8.guest/2020/oit/composite.fs +++ b/src/8.guest/2020/oit/composite.fs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader outputs layout (location = 0) out vec4 frag; diff --git a/src/8.guest/2020/oit/composite.vs b/src/8.guest/2020/oit/composite.vs index 87fa99c28..fa50aa04d 100644 --- a/src/8.guest/2020/oit/composite.vs +++ b/src/8.guest/2020/oit/composite.vs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader inputs layout (location = 0) in vec3 position; diff --git a/src/8.guest/2020/oit/screen.fs b/src/8.guest/2020/oit/screen.fs index af72188c9..4bfd77f06 100644 --- a/src/8.guest/2020/oit/screen.fs +++ b/src/8.guest/2020/oit/screen.fs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader inputs in vec2 texture_coords; diff --git a/src/8.guest/2020/oit/screen.vs b/src/8.guest/2020/oit/screen.vs index 5bac53ba6..5fa72dacf 100644 --- a/src/8.guest/2020/oit/screen.vs +++ b/src/8.guest/2020/oit/screen.vs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader inputs layout (location = 0) in vec3 position; diff --git a/src/8.guest/2020/oit/solid.fs b/src/8.guest/2020/oit/solid.fs index 808f381f3..d7d189aac 100644 --- a/src/8.guest/2020/oit/solid.fs +++ b/src/8.guest/2020/oit/solid.fs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader outputs layout (location = 0) out vec4 frag; diff --git a/src/8.guest/2020/oit/solid.vs b/src/8.guest/2020/oit/solid.vs index f2ee3f7b5..d6c2e5cdc 100644 --- a/src/8.guest/2020/oit/solid.vs +++ b/src/8.guest/2020/oit/solid.vs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader inputs layout (location = 0) in vec3 position; diff --git a/src/8.guest/2020/oit/transparent.fs b/src/8.guest/2020/oit/transparent.fs index ec8935cb9..9da690385 100644 --- a/src/8.guest/2020/oit/transparent.fs +++ b/src/8.guest/2020/oit/transparent.fs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader outputs layout (location = 0) out vec4 accum; diff --git a/src/8.guest/2020/oit/transparent.vs b/src/8.guest/2020/oit/transparent.vs index 47f879d02..a846e36db 100644 --- a/src/8.guest/2020/oit/transparent.vs +++ b/src/8.guest/2020/oit/transparent.vs @@ -1,4 +1,4 @@ -#version 400 core +#version 420 core // shader inputs layout (location = 0) in vec3 position; diff --git a/src/8.guest/2020/oit/weighted_blended.cpp b/src/8.guest/2020/oit/weighted_blended.cpp index b382f3700..66992a254 100644 --- a/src/8.guest/2020/oit/weighted_blended.cpp +++ b/src/8.guest/2020/oit/weighted_blended.cpp @@ -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__