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