[blur|contrast] Explicitly check for openglCompositing in ::supported()

Ensures that the further checks are not performed on XRender compositing.

REVIEW: 117497
icc-effect-5.14.5
Martin Gräßlin 2014-04-11 08:35:21 +02:00
parent 1c0d0211ca
commit 651ea9f374
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ bool ContrastEffect::enabledByDefault()
bool ContrastEffect::supported()
{
bool supported = GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() && ContrastShader::supported();
bool supported = effects->isOpenGLCompositing() && GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() && ContrastShader::supported();
if (supported) {
int maxTexSize;

View File

@ -154,7 +154,7 @@ bool BlurEffect::enabledByDefault()
bool BlurEffect::supported()
{
bool supported = GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() && GLSLBlurShader::supported();
bool supported = effects->isOpenGLCompositing() && GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() && GLSLBlurShader::supported();
if (supported) {
int maxTexSize;