Remove one more part of direct OpenGL drawing to the root window.

svn path=/branches/work/kwin_composite/; revision=604021
This commit is contained in:
Luboš Luňák 2006-11-11 09:14:38 +00:00
parent 340e64ab51
commit 9a706bea89

View file

@ -203,9 +203,7 @@ SceneOpenGL::~SceneOpenGL()
++it )
(*it).free();
// do cleanup after initBuffer()
if( buffer == rootWindow())
glXDestroyWindow( display(), glxbuffer );
else if( wspace->overlayWindow())
if( wspace->overlayWindow())
{
glXDestroyWindow( display(), glxbuffer );
XDestroyWindow( display(), buffer );