fix locking problem in waterfall

This commit is contained in:
Christian Daniel 2012-05-31 00:37:49 +02:00
parent 6d8406cb54
commit d05341cdcb
1 changed files with 6 additions and 2 deletions

View File

@ -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();
} }