diff --git a/ng/drawing.tcl b/ng/drawing.tcl index 0c780666..4388e118 100644 --- a/ng/drawing.tcl +++ b/ng/drawing.tcl @@ -6,13 +6,13 @@ set oldmousey 0 # -# use this one for Togl 2.0 - # if { 1 } { + +# use this one for Togl 2.0 # if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true -create init -display draw -reshape reshape }] } { -if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true }] } { - puts "no OpenGL" + +if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true }] } { puts "no OpenGL" } { # pack .ndraw -expand true -fill both -padx 10 -pady 10 diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index af2c127f..853874ee 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1956,8 +1956,8 @@ namespace netgen cout << "call Togl - load font (crashes on my OpenSuse Linux64)" << endl; // togl_font = Togl_LoadBitmapFont( togl, "Helvetica"); // togl_font = Togl_LoadBitmapFont( togl, "Times"); - togl_font = Togl_LoadBitmapFont( togl, TOGL_BITMAP_8_BY_13 ); - // togl_font = Togl_LoadBitmapFont( togl, NULL ); + // togl_font = Togl_LoadBitmapFont( togl, TOGL_BITMAP_8_BY_13 ); + togl_font = Togl_LoadBitmapFont( togl, NULL ); cout << "success" << endl; glMatrixMode(GL_PROJECTION);