Feature #2196

Provide proper cleanup of OpenGL resources on parent widget change

Added by pospelov about 1 year ago. Updated about 1 year ago.

Status:ResolvedStart date:12 Oct 2018
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 39

Description

To be able to show OpenGL content in the context of dock-able view I've placed a hack into main GUI main.cpp

QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);

Everything seems working, however, this article
http://doc.qt.io/qt-5/qopenglwidget.html#resource-initialization-and-cleanup
explains that it is not correct way to do it and proper OpenGL resource cleanup should be provided.

Within this item
  • remove a hack from main.cpp
  • make proper cleanup in (probably) ba3d/canvas.h
  • make sure that RealSpaceView is working in the dock
  • make sure that OpenGL on Windows and Mac works as expected
Other links which might be useful

History

#1 Updated by pospelov about 1 year ago

  • Assignee set to pospelov

#2 Updated by pospelov about 1 year ago

  • Status changed from Sprint to Resolved

Also available in: Atom PDF