[effects] Fix loading of trackmouse effect textures

Logic error preventing the textures from loading.

REVIEW: 123862
This commit is contained in:
Martin Gräßlin 2015-05-20 14:45:53 +02:00
parent eb789e43e3
commit 00dd1ad0fa

View file

@ -203,9 +203,9 @@ bool TrackMouseEffect::init()
{
effects->makeOpenGLContextCurrent();
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
if (!(m_texture[0] || m_picture[0] || m_image[0].isNull())) {
if (!(m_texture[0] || m_picture[0] || !m_image[0].isNull())) {
loadTexture();
if (!(m_texture[0] || m_picture[0] || m_image[0].isNull()))
if (!(m_texture[0] || m_picture[0] || !m_image[0].isNull()))
return false;
}
#else