[effects] Fix loading of trackmouse effect textures

Logic error preventing the textures from loading.

REVIEW: 123862
remotes/origin/Plasma/5.3
Martin Gräßlin 11 years ago
parent eb789e43e3
commit 00dd1ad0fa
  1. 4
      effects/trackmouse/trackmouse.cpp

@ -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

Loading…
Cancel
Save