aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-09-02 15:27:15 +0200
committerGitHub <noreply@github.com>2022-09-02 15:27:15 +0200
commit99e5a14703d9c2a666a2381608ecdfee2cc6ea45 (patch)
tree416d65561b1523040be78a56e33344960af34737
parent57dea0e4d802e34c6494ff5ebe312182dde49acb (diff)
parent0efc79bcb9c97857c50665dd487fb72afa6a4897 (diff)
Merge pull request #2010 from jockus/OpenGL-GL_DEBUG
Add GL_DEBUG config that falls back to ODIN_DEBUG to preserve previou…
-rw-r--r--vendor/OpenGL/constants.odin2
-rw-r--r--vendor/OpenGL/helpers.odin2
-rw-r--r--vendor/OpenGL/wrappers.odin2
3 files changed, 4 insertions, 2 deletions
diff --git a/vendor/OpenGL/constants.odin b/vendor/OpenGL/constants.odin
index 28c923903..c7d8b9542 100644
--- a/vendor/OpenGL/constants.odin
+++ b/vendor/OpenGL/constants.odin
@@ -1,5 +1,7 @@
package odin_gl
+GL_DEBUG :: #config(GL_DEBUG, ODIN_DEBUG)
+
FALSE :: false
TRUE :: true
diff --git a/vendor/OpenGL/helpers.odin b/vendor/OpenGL/helpers.odin
index 927129130..61c68ace5 100644
--- a/vendor/OpenGL/helpers.odin
+++ b/vendor/OpenGL/helpers.odin
@@ -46,7 +46,7 @@ get_last_error_message :: proc() -> (compile_message: string, compile_type: Shad
// Shader checking and linking checking are identical
// except for calling differently named GL functions
// it's a bit ugly looking, but meh
-when ODIN_DEBUG {
+when GL_DEBUG {
import "core:runtime"
@private
diff --git a/vendor/OpenGL/wrappers.odin b/vendor/OpenGL/wrappers.odin
index b62ed216b..ba6ff369c 100644
--- a/vendor/OpenGL/wrappers.odin
+++ b/vendor/OpenGL/wrappers.odin
@@ -2,7 +2,7 @@ package odin_gl
#assert(size_of(bool) == size_of(u8))
-when !ODIN_DEBUG {
+when !GL_DEBUG {
// VERSION_1_0
CullFace :: proc "c" (mode: u32) { impl_CullFace(mode) }
FrontFace :: proc "c" (mode: u32) { impl_FrontFace(mode) }