added wxGLCanvas::IsDisplaySupported() (patch 1879906)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -297,6 +297,24 @@ wxGLCanvasX11::InitXVisualInfo(const int *attribList,
|
||||
return *pXVisual != NULL;
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
wxGLCanvasBase::IsDisplaySupported(const int *attribList)
|
||||
{
|
||||
GLXFBConfig *fbc = NULL;
|
||||
XVisualInfo *vi = NULL;
|
||||
|
||||
const bool
|
||||
isSupported = wxGLCanvasX11::InitXVisualInfo(attribList, &fbc, &vi);
|
||||
|
||||
if ( fbc )
|
||||
XFree(fbc);
|
||||
if ( vi )
|
||||
XFree(vi);
|
||||
|
||||
return isSupported;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// default visual management
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user