Avoid 'possibly uninitialized' warning.

svn path=/trunk/KDE/kdebase/workspace/; revision=787696
This commit is contained in:
Luboš Luňák 2008-03-19 16:55:07 +00:00
parent f0badecfe6
commit 6c823ead71

View file

@ -129,7 +129,7 @@ void CompositingPrefs::detect()
// remember and later restore active context
GLXContext oldcontext = glXGetCurrentContext();
GLXDrawable olddrawable = glXGetCurrentDrawable();
GLXDrawable oldreaddrawable;
GLXDrawable oldreaddrawable = None;
if( hasglx13 )
oldreaddrawable = glXGetCurrentReadDrawable();