From 00dd1ad0faed46954a3dce27c0fe07e222c987fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 20 May 2015 14:45:53 +0200 Subject: [PATCH] [effects] Fix loading of trackmouse effect textures Logic error preventing the textures from loading. REVIEW: 123862 --- effects/trackmouse/trackmouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/trackmouse/trackmouse.cpp b/effects/trackmouse/trackmouse.cpp index 436ace18e1..3caaf22d33 100644 --- a/effects/trackmouse/trackmouse.cpp +++ b/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