warn if visual isn't found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
aee3892569
commit
a20cd16ca0
@ -224,6 +224,8 @@ bool wxGLCanvas::Create( wxWindow *parent,
|
||||
|
||||
g_vi = glXChooseVisual( dpy, DefaultScreen(dpy), attribList );
|
||||
|
||||
wxCHECK_MSG( g_vi, FALSE, "required visual couldn't be found" );
|
||||
|
||||
GdkVisual *visual = gdkx_visual_get( g_vi->visualid );
|
||||
GdkColormap *colormap = gdk_colormap_new( gdkx_visual_get(g_vi->visualid), TRUE );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user