1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 14:21:49 -05:00

Merge pull request #1756 from srcejon/fix_1735

Clear OpenGL buffer with alpha=1
This commit is contained in:
Edouard Griffiths 2023-08-01 08:20:34 +02:00 committed by GitHub
commit 9e262a1f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,7 +975,7 @@ void GLSpectrumView::paintGL()
} }
QOpenGLFunctions *glFunctions = QOpenGLContext::currentContext()->functions(); QOpenGLFunctions *glFunctions = QOpenGLContext::currentContext()->functions();
glFunctions->glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glFunctions->glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glFunctions->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glFunctions->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
QMatrix4x4 spectrogramGridMatrix; QMatrix4x4 spectrogramGridMatrix;