From af03256eaed7f22f6497adc2266399795b6cff11 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 18 Nov 2010 21:53:34 +0100 Subject: [PATCH] Changed: Get X extensions list --- .../src/3d/driver/opengl/driver_opengl_window.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index c712ff9d3..0c5c1a1ad 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -362,6 +362,19 @@ bool CDriverGL::init (uint windowIcon, emptyProc exitFunc) } #endif // HAVE_XRENDER + // list all supported extensions + sint nextensions = 0; + char **extensions = XListExtensions(_dpy, &nextensions); + + std::string exts; + + for(sint i = 0; i < nextensions; ++i) + exts += NLMISC::toString(" %s", extensions[i]); + + XFreeExtensionList(extensions); + + nlinfo("X Extensions:%s", exts.c_str()); + #endif return true;