fix locking problem in waterfall
This commit is contained in:
parent
6d8406cb54
commit
d05341cdcb
|
@ -207,7 +207,11 @@ void Waterfall::resizeTexture()
|
|||
|
||||
void Waterfall::refresh()
|
||||
{
|
||||
if(m_fftSize != m_image->width())
|
||||
createImage();
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
if((m_image == NULL) || (m_fftSize != m_image->width())) {
|
||||
createImage();
|
||||
resizeGL(width(), height());
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue