From e99a883a81813506b4b193dbaba003cac5c2668c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 7 Nov 2006 17:51:15 +0000 Subject: [PATCH] Require configs with no caveats. Manual replacement for glXChooseFBConfig() is really needed :-/. svn path=/branches/work/kwin_composite/; revision=603064 --- scene_opengl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 01e9a98d28..a1daa401cd 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -114,6 +114,7 @@ static void checkGLError( const char* txt ) // attributes for finding a double-buffered root window config const int root_db_attrs[] = { + GLX_CONFIG_CAVEAT, GLX_NONE, GLX_DOUBLEBUFFER, True, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, @@ -126,6 +127,7 @@ const int root_db_attrs[] = // attributes for finding a non-double-buffered root window config static const int root_buffer_attrs[] = { + GLX_CONFIG_CAVEAT, GLX_NONE, GLX_DOUBLEBUFFER, False, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, @@ -138,6 +140,7 @@ static const int root_buffer_attrs[] = // attributes for finding config for windows const int drawable_attrs[] = { + GLX_CONFIG_CAVEAT, GLX_NONE, GLX_DOUBLEBUFFER, False, GLX_DEPTH_SIZE, 0, GLX_RED_SIZE, 1, @@ -152,6 +155,7 @@ const int drawable_attrs[] = // attributes for finding config for windows when using tfp const int drawable_tfp_attrs[] = { + GLX_CONFIG_CAVEAT, GLX_NONE, GLX_DOUBLEBUFFER, False, GLX_DEPTH_SIZE, 0, GLX_RED_SIZE, 1,