From a8027295629294e2ba385258d8065163a1d750f9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Jul 2013 10:15:59 +0000 Subject: [PATCH] Added FRAME_BUFFER_OBJECT enum --- include/osg/FrameBufferObject | 2 +- include/osg/StateAttribute | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/osg/FrameBufferObject b/include/osg/FrameBufferObject index 6c5e3ceb6..3b75f81cc 100644 --- a/include/osg/FrameBufferObject +++ b/include/osg/FrameBufferObject @@ -400,7 +400,7 @@ namespace osg FrameBufferObject(); FrameBufferObject(const FrameBufferObject& copy, const CopyOp& copyop = CopyOp::SHALLOW_COPY); - META_StateAttribute(osg, FrameBufferObject, (StateAttribute::Type)0x101010/*FrameBufferObject*/); + META_StateAttribute(osg, FrameBufferObject, FRAME_BUFFER_OBJECT); inline const AttachmentMap& getAttachmentMap() const; diff --git a/include/osg/StateAttribute b/include/osg/StateAttribute index 7c95997c1..bf202197b 100644 --- a/include/osg/StateAttribute +++ b/include/osg/StateAttribute @@ -192,8 +192,10 @@ class OSG_EXPORT StateAttribute : public Object TRANSFORMFEEDBACKBUFFERBINDING, ATOMICCOUNTERBUFFERBINDING, - - PATCH_PARAMETER + + PATCH_PARAMETER, + + FRAME_BUFFER_OBJECT }; /** Simple pairing between an attribute type and the member within that attribute type group.*/