From da22e5d7c04bccc9bbe86db0a4e7c8f9cf5f22e5 Mon Sep 17 00:00:00 2001 From: hecks <42101236+hecktest@users.noreply.github.com> Date: Sat, 7 Aug 2021 22:50:13 +0200 Subject: [PATCH] Remove redundant and troublesome constants from the GL binding --- include/mt_opengl.h | 3 --- scripts/BindingGenerator.lua | 3 --- 2 files changed, 6 deletions(-) diff --git a/include/mt_opengl.h b/include/mt_opengl.h index 9a4cec44..e7876cf9 100755 --- a/include/mt_opengl.h +++ b/include/mt_opengl.h @@ -3148,10 +3148,7 @@ public: static constexpr const GLenum ZERO = 0; static constexpr const GLenum ONE = 1; - static constexpr const GLenum FALSE = 0; - static constexpr const GLenum TRUE = 1; static constexpr const GLenum NONE = 0; - static constexpr const GLenum NO_ERROR = 0; }; //Global GL procedures object. diff --git a/scripts/BindingGenerator.lua b/scripts/BindingGenerator.lua index 624c21c6..0774cdd6 100755 --- a/scripts/BindingGenerator.lua +++ b/scripts/BindingGenerator.lua @@ -400,10 +400,7 @@ f:write( "\n\n" ); f:write[[ static constexpr const GLenum ZERO = 0; static constexpr const GLenum ONE = 1; - static constexpr const GLenum FALSE = 0; - static constexpr const GLenum TRUE = 1; static constexpr const GLenum NONE = 0; - static constexpr const GLenum NO_ERROR = 0; ]]; f:write( "};\n" ); f:write( "\n//Global GL procedures object.\n" );