summaryrefslogtreecommitdiffstats
path: root/src/scenegraph/coreapi/qsgtexturemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenegraph/coreapi/qsgtexturemanager.h')
-rw-r--r--src/scenegraph/coreapi/qsgtexturemanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scenegraph/coreapi/qsgtexturemanager.h b/src/scenegraph/coreapi/qsgtexturemanager.h
index 0bc08aa..6eb25ad 100644
--- a/src/scenegraph/coreapi/qsgtexturemanager.h
+++ b/src/scenegraph/coreapi/qsgtexturemanager.h
@@ -148,6 +148,8 @@ public:
bool isNull() const { return m_texture == 0; }
+ bool isReady() const { return m_texture != 0 && m_texture->status() == QSGTexture::Ready; }
+
private:
void deref() {
if (m_texture && !--m_texture->m_ref_count) {