From 8bbf28ed9c9d55da0177ba4e6ef8736ae8450946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 23 Nov 2006 20:21:27 +0000 Subject: [PATCH] It seems the fallback mode doesn't work with direct rendering. svn path=/branches/work/kwin_composite/; revision=607241 --- scene_opengl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 2fcea9a23c..44ace7620e 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -309,6 +309,8 @@ void SceneOpenGL::cleanupShm() void SceneOpenGL::initRenderingContext() { bool direct_rendering = options->glDirect; + if( !tfp_mode && !shm_mode ) + direct_rendering = false; // fallback doesn't seem to work with direct rendering KXErrorHandler errs; ctxbuffer = glXCreateNewContext( display(), fbcbuffer, GLX_RGBA_TYPE, NULL, direct_rendering ? GL_TRUE : GL_FALSE );