]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/frameformat.cpp
Move all OpenGL-specific code to a separate directory
[libs/gl.git] / source / core / frameformat.cpp
index 3b114e7f2f0ebd01da02ea39ce5edd72f64e2be8..36b45f6108d4e82f7ce2946d31b19d0c47932c5f 100644 (file)
@@ -1,6 +1,7 @@
 #include "deviceinfo.h"
 #include "error.h"
 #include "frameformat.h"
+#include "gl.h"
 
 using namespace std;
 
@@ -123,15 +124,5 @@ PixelFormat get_attachment_pixelformat(FrameAttachment fa)
        return make_pixelformat(comp, type);
 }
 
-GLenum get_gl_attachment(FrameAttachment fa)
-{
-       if(get_attach_point(fa)==get_attach_point(DEPTH_ATTACHMENT))
-               return GL_DEPTH_ATTACHMENT;
-       else if(get_attach_point(fa)==get_attach_point(STENCIL_ATTACHMENT))
-               return GL_STENCIL_ATTACHMENT;
-       else
-               return GL_COLOR_ATTACHMENT0+get_attach_point(fa);
-}
-
 } // namespace GL
 } // namespace Msp