Add debug rendering for shadow code
This commit is contained in:
parent
0667076fab
commit
ea17b3562c
1 changed files with 7 additions and 0 deletions
|
@ -687,6 +687,13 @@ void SceneOpenGL::Window::paintShadow(WindowQuadType type, const QRegion ®ion
|
||||||
renderQuads(0, region, quads);
|
renderQuads(0, region, quads);
|
||||||
restoreStates(Shadow, data.opacity, data.brightness, data.saturation, data.shader, texture);
|
restoreStates(Shadow, data.opacity, data.brightness, data.saturation, data.shader, texture);
|
||||||
texture->unbind();
|
texture->unbind();
|
||||||
|
#ifndef KWIN_HAVE_OPENGLES
|
||||||
|
if (static_cast<SceneOpenGL*>(scene)->debug) {
|
||||||
|
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
|
||||||
|
renderQuads(0, region, quads);
|
||||||
|
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, const QRect& rect) const
|
void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, const QRect& rect) const
|
||||||
|
|
Loading…
Reference in a new issue