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 )
(*it).free(); (*it).free();
// do cleanup after initBuffer() // do cleanup after initBuffer()
if( buffer == rootWindow()) if( wspace->overlayWindow())
glXDestroyWindow( display(), glxbuffer );
else if( wspace->overlayWindow())
{ {
glXDestroyWindow( display(), glxbuffer ); glXDestroyWindow( display(), glxbuffer );
XDestroyWindow( display(), buffer ); XDestroyWindow( display(), buffer );