manageddisplaywidgets: fixed issue that caused buffers to be drawn on the main window
This commit is contained in:
@@ -60,8 +60,6 @@ void WaveformScope::initializeGL()
|
||||
{
|
||||
ManagedDisplayWidget::initializeGL();
|
||||
|
||||
makeCurrent();
|
||||
|
||||
pipeline_ = OpenGLShader::Create();
|
||||
pipeline_->create();
|
||||
pipeline_->addShaderFromSourceCode(QOpenGLShader::Vertex, OpenGLShader::CodeDefaultVertex());
|
||||
@@ -70,8 +68,6 @@ void WaveformScope::initializeGL()
|
||||
|
||||
framebuffer_.Create(context());
|
||||
|
||||
doneCurrent();
|
||||
|
||||
connect(context(), &QOpenGLContext::aboutToBeDestroyed, this, &WaveformScope::CleanUp, Qt::DirectConnection);
|
||||
|
||||
UploadTextureFromBuffer();
|
||||
|
||||
Reference in New Issue
Block a user