Fix incorrect Texture creation

The textures get created over QSize -> QPixmap conversation which is
obviously not intended here.

REVIEW: 109337
This commit is contained in:
Martin Gräßlin 2013-03-07 13:51:20 +01:00
parent c3ec860a72
commit 30a3fade2b

View file

@ -255,7 +255,7 @@ void MagnifierEffect::zoomIn()
effects->startMousePolling();
}
if (!m_texture) {
m_texture = new GLTexture(magnifier_size);
m_texture = new GLTexture(magnifier_size.width(), magnifier_size.height());
m_texture->setYInverted(false);
m_fbo = new GLRenderTarget(*m_texture);
}
@ -293,7 +293,7 @@ void MagnifierEffect::toggle()
effects->startMousePolling();
}
if (!m_texture) {
m_texture = new GLTexture(magnifier_size);
m_texture = new GLTexture(magnifier_size.width(), magnifier_size.height());
m_texture->setYInverted(false);
m_fbo = new GLRenderTarget(*m_texture);
}