From 75a2ea5fb9dbd19d0cb1f6d5d4a7e85ee6a82a01 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;