diff --git a/include/boo/graphicsdev/IGraphicsDataFactory.hpp b/include/boo/graphicsdev/IGraphicsDataFactory.hpp index f944816..2e4cd4e 100644 --- a/include/boo/graphicsdev/IGraphicsDataFactory.hpp +++ b/include/boo/graphicsdev/IGraphicsDataFactory.hpp @@ -292,6 +292,7 @@ public: return *this; } ~GraphicsDataToken() {doDestroy();} + operator bool() const {return m_factory && m_data;} }; }