diff options
author | Christof Pintaske <cp@openoffice.org> | 2001-04-24 15:04:32 +0000 |
---|---|---|
committer | Christof Pintaske <cp@openoffice.org> | 2001-04-24 15:04:32 +0000 |
commit | ff487674386c50e11fff415f9dad8093395bf761 (patch) | |
tree | 897382fdadbd3e9630f4a09f035a389d4ea0efe0 /vcl | |
parent | 43c4bcce4e609594544f5f6db0c966bdaf829437 (diff) |
#86333# check for correct screen of visual
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/source/gdi/salogl.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/unx/source/gdi/salogl.cxx b/vcl/unx/source/gdi/salogl.cxx index 791c0e3ddd53..eaf0b65e5d11 100644 --- a/vcl/unx/source/gdi/salogl.cxx +++ b/vcl/unx/source/gdi/salogl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: salogl.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: pl $ $Date: 2000-12-20 14:37:21 $ + * last change: $Author: cp $ $Date: 2001-04-24 16:04:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -400,7 +400,8 @@ void SalOpenGL::MakeVisualWeights( Display* pDisplay, { int nDoubleBuffer = 0; int nHaveGL = 0; - if( pInfos[i].c_class == TrueColor ) + // a weight lesser than zero indicates an invalid visual (wrong screen) + if( pInfos[i].c_class == TrueColor && pWeights[i] >= 0) { pGetConfig( pDisplay, &pInfos[ i ], GLX_USE_GL, &nHaveGL ); pGetConfig( pDisplay, &pInfos[ i ], GLX_DOUBLEBUFFER, &nDoubleBuffer ); |