diff options
Diffstat (limited to 'src/waveform/widgets/glslwaveformwidget.cpp')
-rw-r--r-- | src/waveform/widgets/glslwaveformwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/waveform/widgets/glslwaveformwidget.cpp b/src/waveform/widgets/glslwaveformwidget.cpp index 0ea708d47e..4852974519 100644 --- a/src/waveform/widgets/glslwaveformwidget.cpp +++ b/src/waveform/widgets/glslwaveformwidget.cpp @@ -62,6 +62,8 @@ GLSLWaveformWidget::GLSLWaveformWidget( addRenderer<WaveformRenderBeat>(); addRenderer<WaveformRenderMark>(); + doneCurrent(); + m_initSuccess = init(); } @@ -93,6 +95,7 @@ void GLSLWaveformWidget::resize(int width, int height) { // and the Gl Context should be properly set makeCurrentIfNeeded(); WaveformWidgetAbstract::resize(width, height); + doneCurrent(); } void GLSLWaveformWidget::mouseDoubleClickEvent(QMouseEvent *event) { @@ -103,5 +106,6 @@ void GLSLWaveformWidget::mouseDoubleClickEvent(QMouseEvent *event) { m_signalRenderer->debugClick(); } #endif // !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2) + doneCurrent(); } } |