From 8f66f807892af358626671856a40b59b4ffa262f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 29 Oct 2008 12:50:26 +0000 Subject: [PATCH] Do not test for GLRenderTarget as it is not used. CCMAIL: l.lunak@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=877398 --- effects/cylinder.cpp | 3 +-- effects/sphere.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/effects/cylinder.cpp b/effects/cylinder.cpp index 0ad5d0c324..23ef9a9138 100644 --- a/effects/cylinder.cpp +++ b/effects/cylinder.cpp @@ -58,8 +58,7 @@ void CylinderEffect::reconfigure( ReconfigureFlags ) bool CylinderEffect::supported() { - return GLRenderTarget::supported() && - GLShader::fragmentShaderSupported() && + return GLShader::fragmentShaderSupported() && (effects->compositingType() == OpenGLCompositing); } diff --git a/effects/sphere.cpp b/effects/sphere.cpp index 57bc02c144..d11fd62a1d 100644 --- a/effects/sphere.cpp +++ b/effects/sphere.cpp @@ -63,8 +63,7 @@ void SphereEffect::reconfigure( ReconfigureFlags ) bool SphereEffect::supported() { - return GLRenderTarget::supported() && - GLShader::fragmentShaderSupported() && + return GLShader::fragmentShaderSupported() && (effects->compositingType() == OpenGLCompositing); }