From 2a0ad3ef6f31fddc0cba83cc9930dd4cfa50fd9f Mon Sep 17 00:00:00 2001 From: Andy Korth Date: Thu, 17 Jan 2013 14:45:57 -0600 Subject: [PATCH] A few minor comments --- Source/Examples/Main.cs | 6 ++++-- Source/OpenTK/Platform/MacOS/AglContext.cs | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/Examples/Main.cs b/Source/Examples/Main.cs index 6999104d..213948be 100644 --- a/Source/Examples/Main.cs +++ b/Source/Examples/Main.cs @@ -45,11 +45,13 @@ namespace Examples // This seems to be useful enough to leave in for a while. TextWriterTraceListener console = new TextWriterTraceListener(System.Console.Out); Trace.Listeners.Add (console); - + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Examples.Tests.MatrixTest.Main (); + // The ExampleBrowser works pretty poorly on some platforms, so you may want to start examples directly. + // for example: Examples.Tutorial.T12_GLSL_Parallax.Main (); + // Examples.Tutorial.T10_GLSL_Cube.Main (); using (Form browser = new ExampleBrowser()) { diff --git a/Source/OpenTK/Platform/MacOS/AglContext.cs b/Source/OpenTK/Platform/MacOS/AglContext.cs index cb6548a3..9dc17fc4 100644 --- a/Source/OpenTK/Platform/MacOS/AglContext.cs +++ b/Source/OpenTK/Platform/MacOS/AglContext.cs @@ -475,6 +475,9 @@ namespace OpenTK.Platform.MacOS // I do not know MacOS allows us to destroy a context from a separate thread, // like the finalizer thread. It's untested, but worst case is probably // an exception on application exit, which would be logged to the console. + + // Actually, it seems to crash the mono runtime. -AMK 2013 + Debug.Print("Destroying context"); if (Agl.aglDestroyContext(Handle.Handle) == true) {