diff --git a/scene_opengl.cpp b/scene_opengl.cpp index e15e1b04ff..3bcc1f27ee 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1441,9 +1441,12 @@ void SceneOpenGL::Window::performPaint( int mask, QRegion region, WindowPaintDat WindowQuadList decoration = data.quads.select( WindowQuadDecoration ); // paint the content - prepareStates( Content, data.opacity * data.contents_opacity, data.brightness, data.saturation, data.shader ); - renderQuads( mask, region, data.quads.select( WindowQuadContents )); - restoreStates( Content, data.opacity * data.contents_opacity, data.brightness, data.saturation, data.shader ); + if ( !(mask & PAINT_DECORATION_ONLY) ) + { + prepareStates( Content, data.opacity * data.contents_opacity, data.brightness, data.saturation, data.shader ); + renderQuads( mask, region, data.quads.select( WindowQuadContents )); + restoreStates( Content, data.opacity * data.contents_opacity, data.brightness, data.saturation, data.shader ); + } texture.disableUnnormalizedTexCoords(); texture.unbind();