]> Creatis software - bbtkGEditor.git/blobdiff - appli/bbEditor/bbEditor.cxx
#3251 Bug with segmentation fault with VTK 9.2 ( SupportsOpenGL )
[bbtkGEditor.git] / appli / bbEditor / bbEditor.cxx
index 4bbc842b47e5b3312c4194f1fbbc0dde9dcb3708..affb5a2462caa6ee0cfe6506646dc9e6757cd8c3 100644 (file)
@@ -129,13 +129,16 @@ bool wxBBEditorApp::OnCmdLineParsed(wxCmdLineParser& parser)
 
 #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)
        {
@@ -147,7 +150,7 @@ bool wxBBEditorApp::OnInit( )
                wxMessageBox(message);
                exit(0);
        }
-
+*/
        
        vtkOutputWindowbbGEditor *vtkoutputwindowbbgeditor= vtkOutputWindowbbGEditor::New();
        vtkOutputWindow::SetInstance( vtkoutputwindowbbgeditor );
@@ -188,7 +191,6 @@ bool wxBBEditorApp::OnInit( )
                        iegbbs->OpenBBS(input_file[i], input_file[i]); 
                } 
        }
-
        return true;
 }