From 9a706bea89fa78919cf9274f68f17054c04a327c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 11 Nov 2006 09:14:38 +0000 Subject: [PATCH] Remove one more part of direct OpenGL drawing to the root window. svn path=/branches/work/kwin_composite/; revision=604021 --- scene_opengl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 640245646a..f15481afcc 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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 );