diff --git a/effects.cpp b/effects.cpp index 53d63be7f4..3e28ee5da2 100644 --- a/effects.cpp +++ b/effects.cpp @@ -1697,7 +1697,9 @@ EffectFrameImpl::EffectFrameImpl( EffectFrameStyle style, bool staticSize, QPoin if( effects->compositingType() == OpenGLCompositing ) { +#ifdef KWIN_HAVE_OPENGL_COMPOSITING m_sceneFrame = new SceneOpenGL::EffectFrame( this ); +#endif } else if( effects->compositingType() == XRenderCompositing ) { diff --git a/lanczosfilter.h b/lanczosfilter.h index 1f7a5ef06a..b383918405 100644 --- a/lanczosfilter.h +++ b/lanczosfilter.h @@ -38,7 +38,9 @@ class WindowPaintData; class GLTexture; class GLRenderTarget; class GLShader; +#ifdef KWIN_HAVE_OPENGL_COMPOSITING class LanczosShader; +#endif class LanczosFilter : public QObject @@ -55,11 +57,11 @@ class LanczosFilter private: void init(); void updateOffscreenSurfaces(); -#ifdef KWIN_HAVE_OPENGL_COMPOSITING void prepareRenderStates( GLTexture* tex, double opacity, double brightness, double saturation ); void restoreRenderStates( GLTexture* tex, double opacity, double brightness, double saturation ); GLTexture *m_offscreenTex; GLRenderTarget *m_offscreenTarget; +#ifdef KWIN_HAVE_OPENGL_COMPOSITING LanczosShader *m_shader; #endif QBasicTimer m_timer;