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.*/