From 67b94586c43263017f65504c69b51c8d8ca55192 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 23 Sep 2021 13:19:22 +0300 Subject: [PATCH] effects/trackmouse: Fix texture check Both texture and image cannot be not null as they are initialized based on compositing type. BUG: 439859 --- src/effects/trackmouse/trackmouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/trackmouse/trackmouse.cpp b/src/effects/trackmouse/trackmouse.cpp index 439d415b10..cbb283021f 100644 --- a/src/effects/trackmouse/trackmouse.cpp +++ b/src/effects/trackmouse/trackmouse.cpp @@ -146,9 +146,9 @@ void TrackMouseEffect::postPaintScreen() bool TrackMouseEffect::init() { effects->makeOpenGLContextCurrent(); - if (!m_texture[0] || m_image[0].isNull()) { + if (!m_texture[0] && m_image[0].isNull()) { loadTexture(); - if (!m_texture[0] || m_image[0].isNull()) + if (!m_texture[0] && m_image[0].isNull()) return false; } m_lastRect[0].moveCenter(cursorPos());