From 45fb66540f954f3eea88be836acf37eebf42138c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 6 Jan 2016 14:35:57 -1000 Subject: [PATCH] GraphicsToken bool operator --- include/boo/graphicsdev/IGraphicsDataFactory.hpp | 1 + 1 file changed, 1 insertion(+) 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;} }; }