diff options
Diffstat (limited to 'src/scenegraph/coreapi/renderer.cpp')
-rw-r--r-- | src/scenegraph/coreapi/renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenegraph/coreapi/renderer.cpp b/src/scenegraph/coreapi/renderer.cpp index a3d2feb..79a5fcd 100644 --- a/src/scenegraph/coreapi/renderer.cpp +++ b/src/scenegraph/coreapi/renderer.cpp @@ -70,6 +70,8 @@ Renderer::Renderer() , m_root_node(0) , m_changed_emitted(false) { + Q_ASSERT(QGLContext::currentContext()); + initializeGLFunctions(); } Renderer::~Renderer() @@ -111,8 +113,6 @@ void Renderer::renderScene(const Bindable &bindable) if (!m_root_node) return; - initializeGLFunctions(); - preprocess(); bindable.bind(); GeometryDataUploader::bind(); |