mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-11 10:12:37 -04:00
Clear buffer to black rather than transparent. Fixes #2349
This commit is contained in:
parent
6fedef4c45
commit
1177d97c99
@ -241,7 +241,7 @@ void GLScope::paintGL()
|
|||||||
// m_traceCounter = 0;
|
// m_traceCounter = 0;
|
||||||
|
|
||||||
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);
|
glFunctions->glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
if ((m_displayMode == DisplayX) || (m_displayMode == DisplayXYV) || (m_displayMode == DisplayXYH)) // display trace #0
|
if ((m_displayMode == DisplayX) || (m_displayMode == DisplayXYV) || (m_displayMode == DisplayXYH)) // display trace #0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user