]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the now unused BufferBits enum
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 Sep 2021 15:39:47 +0000 (18:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 Sep 2021 15:39:47 +0000 (18:39 +0300)
source/core/framebuffer.h

index 48888459da363f7b24be4e7edd25aecbc0d00a8f..a58d31d890927f0a59261169748554b24c49c29b 100644 (file)
@@ -4,7 +4,6 @@
 #include <vector>
 #include "color.h"
 #include "frameformat.h"
-#include "gl.h"
 #include "texturecube.h"
 #include <msp/gl/extensions/arb_geometry_shader4.h>
 #include <msp/gl/extensions/ext_framebuffer_multisample.h>
@@ -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<BufferBits>(static_cast<int>(a)|static_cast<int>(b)); }
-
 } // namespace GL
 } // namespace Msp