Permalink
Browse files

A few minor comments

  • Loading branch information...
1 parent 3a9dfc6 commit 2a0ad3ef6f31fddc0cba83cc9930dd4cfa50fd9f @andykorth committed Jan 17, 2013
Showing with 7 additions and 2 deletions.
  1. +4 −2 Source/Examples/Main.cs
  2. +3 −0 Source/OpenTK/Platform/MacOS/AglContext.cs
View
@@ -45,11 +45,13 @@ public static void Main()
// 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())
{
@@ -475,6 +475,9 @@ void Dispose(bool disposing)
// 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)
{

0 comments on commit 2a0ad3e

Please sign in to comment.