Fix creating wxGLCanvas without any attributes in wxMSW.
This was broken by the changes of r77018, see #16402. Just check that we do have the attributes before examining them. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -321,6 +321,8 @@ bool wxGLCanvas::Create(wxWindow *parent,
|
||||
glVersionMinor = 0;
|
||||
|
||||
// Check for a core profile request
|
||||
if ( attribList )
|
||||
{
|
||||
for ( int i = 0; attribList[i]; )
|
||||
{
|
||||
switch ( attribList[i++] )
|
||||
@@ -342,6 +344,7 @@ bool wxGLCanvas::Create(wxWindow *parent,
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( useGLCoreProfile )
|
||||
{
|
||||
|
Reference in New Issue
Block a user