From 280de9095aaf286f8529a3932ffe7abd2cdd8052 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 26 Jun 2022 10:36:10 +0200 Subject: [PATCH] GLScope and GLSpectrum removed extraneous call to cleanup method. Fixes #1295 --- sdrgui/gui/glscope.cpp | 2 -- sdrgui/gui/glspectrum.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/sdrgui/gui/glscope.cpp b/sdrgui/gui/glscope.cpp index e449710bd..2336453bb 100644 --- a/sdrgui/gui/glscope.cpp +++ b/sdrgui/gui/glscope.cpp @@ -203,8 +203,6 @@ void GLScope::initializeGL() } } - connect(glCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this, &GLScope::cleanup); - QOpenGLFunctions *glFunctions = QOpenGLContext::currentContext()->functions(); glFunctions->initializeOpenGLFunctions(); diff --git a/sdrgui/gui/glspectrum.cpp b/sdrgui/gui/glspectrum.cpp index e7d246ec7..9de614980 100644 --- a/sdrgui/gui/glspectrum.cpp +++ b/sdrgui/gui/glspectrum.cpp @@ -822,8 +822,6 @@ void GLSpectrum::initializeGL() return; } - connect(glCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this, &GLSpectrum::cleanup); - QOpenGLFunctions *glFunctions = QOpenGLContext::currentContext()->functions(); glFunctions->initializeOpenGLFunctions();