#define GL_MAJOR_VERSION 0x821B
#define GL_MINOR_VERSION 0x821C
+
bool wxBBEditorApp::OnInit( )
{
-
vtkRenderWindow *renWin = vtkRenderWindow::New();
+
+ printf("EED wxBBEditorApp::OnInit >>>>> vtkRenderWindow IsDirect %d\n", renWin->IsDirect() );
+
+/* EED 2022-07-26 Segmentation fault with VTK9.2 in MacOs
int supportopengl=renWin->SupportsOpenGL();
printf("EED wxBBEditorApp::OnInit >>>>> vtkRenderWindow SupportsOpenGL %d\n", supportopengl );
- printf("EED wxBBEditorApp::OnInit >>>>> vtkRenderWindow IsDirect %d\n", renWin->IsDirect() );
renWin->Delete();
if (supportopengl==0)
{
wxMessageBox(message);
exit(0);
}
-
+*/
vtkOutputWindowbbGEditor *vtkoutputwindowbbgeditor= vtkOutputWindowbbGEditor::New();
vtkOutputWindow::SetInstance( vtkoutputwindowbbgeditor );
iegbbs->OpenBBS(input_file[i], input_file[i]);
}
}
-
return true;
}