effects/trackmouse: Fix texture check
Both texture and image cannot be not null as they are initialized based on compositing type. BUG: 439859
This commit is contained in:
parent
c83a5daf2b
commit
67b94586c4
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue