From 6601aacc68cf006746659920c8216d4f91b41708 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 6 Mar 2004 02:47:31 +0000 Subject: [PATCH] log X server version --- stepmania/src/RageDisplay_OGL.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 4c83d31e13..8abb3d0498 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -336,6 +336,14 @@ static void LogGLXDebugInformation() LOG->Info( "Display: %s", DisplayString(g_X11Display) ); LOG->Info( "Screen: %i", scr ); LOG->Info( "Direct rendering: %s", glXIsDirect( g_X11Display, glXGetCurrentContext() )? "yes":"no" ); + + int XServerVersion = XVendorRelease( g_X11Display ); /* eg. 40201001 */ + int major = XServerVersion / 10000000; XServerVersion %= 10000000; + int minor = XServerVersion / 100000; XServerVersion %= 100000; + int revision = XServerVersion / 1000; XServerVersion %= 1000; + int patch = XServerVersion; + LOG->Info( "X server vendor: %s, %i.%i.%i.%i", XServerVendor( g_X11Display ), major, minor, revision, patch ); + LOG->Info( "Server GLX vendor: %s", glXQueryServerString( g_X11Display, scr, GLX_VENDOR ) ); LOG->Info( "Server GLX version: %s", glXQueryServerString( g_X11Display, scr, GLX_VERSION ) ); LOG->Info( "Client GLX vendor: %s", glXGetClientString( g_X11Display, GLX_VENDOR ) );