History

Give names to offscreen contexts for easier debugging

Brad Davis committed 10 years ago

Commit 587d0151 parent 0213dd03 files · +4 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+2−0
@@ -1483,6 +1483,7 @@ void Application::initializeGL() { · 1482 unmodified lines
1483 1483
1484 _glWidget->makeCurrent();1484 _glWidget->makeCurrent();
1485 _chromiumShareContext = new OffscreenGLCanvas();1485 _chromiumShareContext = new OffscreenGLCanvas();
1486 _chromiumShareContext->setObjectName("ChromiumShareContext");
1486 _chromiumShareContext->create(_glWidget->context()->contextHandle());1487 _chromiumShareContext->create(_glWidget->context()->contextHandle());
1487 _chromiumShareContext->makeCurrent();1488 _chromiumShareContext->makeCurrent();
1488 qt_gl_set_global_share_context(_chromiumShareContext->getContext());1489 qt_gl_set_global_share_context(_chromiumShareContext->getContext());
@@ -1529,6 +1530,7 @@ void Application::initializeGL() { · 40 unmodified lines
1529 _idleLoopStdev.reset();1530 _idleLoopStdev.reset();
1530 1531
1531 _offscreenContext = new OffscreenGLCanvas();1532 _offscreenContext = new OffscreenGLCanvas();
1533 _offscreenContext->setObjectName("MainThreadContext");
1532 _offscreenContext->create(_glWidget->context()->contextHandle());1534 _offscreenContext->create(_glWidget->context()->contextHandle());
1533 _offscreenContext->makeCurrent();1535 _offscreenContext->makeCurrent();
1534 1536