]> git.lizzy.rs Git - irrlicht.git/commitdiff
Remove redundant and troublesome constants from the GL binding
authorhecks <42101236+hecktest@users.noreply.github.com>
Sat, 7 Aug 2021 20:50:13 +0000 (22:50 +0200)
committerhecks <42101236+hecktest@users.noreply.github.com>
Sat, 7 Aug 2021 20:50:13 +0000 (22:50 +0200)
include/mt_opengl.h
scripts/BindingGenerator.lua

index 9a4cec44565d0f0d3f266977ff60b38583a11be6..e7876cf9018355807f38619ba06d41095227ab9d 100755 (executable)
@@ -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.
index 624c21c6a3bf0c01ba5820d5535126186d1d042b..0774cdd6a40535c69248a22577d3f5b2c9d146a4 100755 (executable)
@@ -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" );