From f19018a03dce6a7e02a39f7902b9ce3c91817845 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Jul 2013 10:07:21 +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.*/