From: Mikko Rasa Date: Sat, 25 Sep 2021 15:39:47 +0000 (+0300) Subject: Remove the now unused BufferBits enum X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=81051dd218aa70cf434358de9a993d5358a8a5e1;p=libs%2Fgl.git Remove the now unused BufferBits enum --- diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index 48888459..a58d31d8 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -4,7 +4,6 @@ #include #include "color.h" #include "frameformat.h" -#include "gl.h" #include "texturecube.h" #include #include @@ -20,13 +19,6 @@ class Texture2DMultisample; class Texture3D; class WindowView; -enum BufferBits -{ - COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT, - DEPTH_BUFFER_BIT = GL_DEPTH_BUFFER_BIT, - STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT -}; - class framebuffer_incomplete: public std::runtime_error { public: @@ -142,9 +134,6 @@ union ClearValue ClearValue(): color(0.0f, 0.0f, 0.0f, 0.0f) { } }; -inline BufferBits operator|(BufferBits a, BufferBits b) -{ return static_cast(static_cast(a)|static_cast(b)); } - } // namespace GL } // namespace Msp