mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
Changed: Get X extensions list
This commit is contained in:
parent
44621ee859
commit
cc63d9fe2f
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue