diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 4d02abee95..8ad03971ec 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1038,35 +1038,6 @@ void SceneOpenGL::Window::paintDecoration(GLTexture *texture, TextureType type, #endif } -void SceneOpenGL::Window::paintShadow(const QRegion ®ion, const WindowPaintData &data) -{ - WindowQuadList quads = data.quads.select(WindowQuadShadow); - if (quads.isEmpty()) - return; - - GLTexture *texture = static_cast(m_shadow)->shadowTexture(); - if (!texture) { - return; - } - if (filter == ImageFilterGood) - texture->setFilter(GL_LINEAR); - else - texture->setFilter(GL_NEAREST); - texture->setWrapMode(GL_CLAMP_TO_EDGE); - texture->bind(); - prepareStates(Shadow, data.opacity(), data.brightness(), data.saturation(), data.screen()); - renderQuads(0, region, quads, texture, true); - restoreStates(Shadow, data.opacity(), data.brightness(), data.saturation()); - texture->unbind(); -#ifndef KWIN_HAVE_OPENGLES - if (m_scene && m_scene->debug()) { - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - renderQuads(0, region, quads, texture, true); - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - } -#endif -} - void SceneOpenGL::Window::renderQuads(int, const QRegion& region, const WindowQuadList& quads, GLTexture *tex, bool normalized) { diff --git a/scene_opengl.h b/scene_opengl.h index f39007cf27..e9ae9516ae 100644 --- a/scene_opengl.h +++ b/scene_opengl.h @@ -210,7 +210,6 @@ protected: QMatrix4x4 transformation(int mask, const WindowPaintData &data) const; GLTexture *getDecorationTexture() const; void paintDecoration(GLTexture *texture, TextureType type, const QRegion ®ion, const WindowPaintData &data, const WindowQuadList &quads); - void paintShadow(const QRegion ®ion, const WindowPaintData &data); void renderQuads(int, const QRegion& region, const WindowQuadList& quads, GLTexture* tex, bool normalized); /** * @brief Prepare the OpenGL rendering state before the texture with @p type will be rendered.