From 7b054df213a64429d8680695ed9f8c453b887158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 17 Jul 2007 10:38:12 +0000 Subject: [PATCH] More debug info about possible initialization failures. svn path=/trunk/KDE/kdebase/workspace/; revision=688960 --- scene_opengl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 80aaad7711..a501e567cf 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -291,12 +291,18 @@ bool SceneOpenGL::initRenderingContext() || errs.error( true )) { // failed if( !direct_rendering ) + { + kDebug( 1212 ) << "Couldn't initialize rendering context" << endl; return false; + } glXDestroyContext( display(), ctxbuffer ); direct_rendering = false; // try again ctxbuffer = glXCreateNewContext( display(), fbcbuffer, GLX_RGBA_TYPE, NULL, GL_FALSE ); if( ctxbuffer == NULL || !glXMakeContextCurrent( display(), glxbuffer, glxbuffer, ctxbuffer )) + { + kDebug( 1212 ) << "Couldn't initialize rendering context" << endl; return false; + } } if( !tfp_mode && !shm_mode ) { @@ -342,6 +348,7 @@ bool SceneOpenGL::initBuffer() } else { + kDebug( 1212 ) << "Couldn't create output buffer (failed to create overlay window?) !" << endl; return false; // error } return true;