From bac8dc095fbcff59c0e6bdeecd4ee1c261519324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 25 Jul 2013 19:13:51 +0200 Subject: [PATCH] fix rendertarget warning on xrender accidental GL call in non GL compositing --- effects/magnifier/magnifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/magnifier/magnifier.cpp b/effects/magnifier/magnifier.cpp index ad8d51a155..5ef9420aa1 100644 --- a/effects/magnifier/magnifier.cpp +++ b/effects/magnifier/magnifier.cpp @@ -255,7 +255,7 @@ void MagnifierEffect::zoomIn() polling = true; effects->startMousePolling(); } - if (!m_texture) { + if (effects->isOpenGLCompositing() && !m_texture) { m_texture = new GLTexture(magnifier_size.width(), magnifier_size.height()); m_texture->setYInverted(false); m_fbo = new GLRenderTarget(*m_texture); @@ -293,7 +293,7 @@ void MagnifierEffect::toggle() polling = true; effects->startMousePolling(); } - if (!m_texture) { + if (effects->isOpenGLCompositing() && !m_texture) { m_texture = new GLTexture(magnifier_size.width(), magnifier_size.height()); m_texture->setYInverted(false); m_fbo = new GLRenderTarget(*m_texture);