From 17899d5e07edb532e4eed9aa565eba576dbe330a Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Sat, 13 Jan 2018 11:32:23 -0800 Subject: [PATCH] Don't create share context for web while running nsight --- interface/src/Application.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 70b5001f06..027e5bb6e9 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2225,11 +2225,13 @@ void Application::initializeGL() { gl::initModuleGl(); _glWidget->makeCurrent(); - _chromiumShareContext = new OffscreenGLCanvas(); - _chromiumShareContext->setObjectName("ChromiumShareContext"); - _chromiumShareContext->create(_glWidget->qglContext()); - _chromiumShareContext->makeCurrent(); - qt_gl_set_global_share_context(_chromiumShareContext->getContext()); + if (!nsightActive()) { + _chromiumShareContext = new OffscreenGLCanvas(); + _chromiumShareContext->setObjectName("ChromiumShareContext"); + _chromiumShareContext->create(_glWidget->qglContext()); + _chromiumShareContext->makeCurrent(); + qt_gl_set_global_share_context(_chromiumShareContext->getContext()); + } _glWidget->makeCurrent(); gpu::Context::init();