summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/render/graphicshelpers/graphicscontext.cpp5
-rw-r--r--src/render/graphicshelpers/graphicscontext_p.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp
index 9ee88b7c2..2713de85b 100644
--- a/src/render/graphicshelpers/graphicscontext.cpp
+++ b/src/render/graphicshelpers/graphicscontext.cpp
@@ -421,6 +421,11 @@ bool GraphicsContext::hasValidGLHelper() const
return m_glHelper != nullptr;
}
+bool GraphicsContext::isInitialized() const
+{
+ return m_initialized;
+}
+
bool GraphicsContext::makeCurrent(QSurface *surface)
{
Q_ASSERT(m_gl);
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h
index d8f861ebb..9f7a0f972 100644
--- a/src/render/graphicshelpers/graphicscontext_p.h
+++ b/src/render/graphicshelpers/graphicscontext_p.h
@@ -126,6 +126,7 @@ public:
void doneCurrent();
void activateGLHelper();
bool hasValidGLHelper() const;
+ bool isInitialized() const;
QOpenGLShaderProgram *createShaderProgram(Shader *shaderNode);
void loadShader(Shader* shader);