Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deflect/qt/QuickRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ void QuickRenderer::_onStop()
if (_context)
_context->makeCurrent(_getSurface());

emit stopping();

_renderControl.invalidate();

_fbo.reset();
Expand Down
6 changes: 6 additions & 0 deletions deflect/qt/QuickRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ class QuickRenderer : public QObject
*/
void afterRender();

/**
* Emitted from the render thread during stop(). Can be used to do some last
* cleanup operations while the GL context is bound.
*/
void stopping();

private:
QQuickWindow& _quickWindow;
QQuickRenderControl& _renderControl;
Expand Down
2 changes: 2 additions & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog {#Changelog}

### 0.14.0 (git master)

* [179](https://github.com/BlueBrain/Deflect/pull/179):
Added stopping() signal to qt::QuickRenderer for GL cleanup operations.
* [177](https://github.com/BlueBrain/Deflect/pull/177):
Improve stream error handling
* Catch errors regarding invalid JPEG quality values
Expand Down