From 523b712cecd78ba17904747ef2e11d5b51a2dbdc Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 6 Jan 2008 11:02:38 +0000 Subject: [PATCH] Fixed NRE on mode.ToString(). --- Source/OpenTK/Platform/X11/X11GLNative.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index b9a07ab4..76ec99af 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -352,7 +352,7 @@ namespace OpenTK.Platform.X11 if (exists) throw new ApplicationException("Render window already exists!"); - Debug.Print("Creating GameWindow with mode: {0}", mode.ToString()); + Debug.Print("Creating GameWindow with mode: {0}", mode != null ? mode.ToString() : "default"); Debug.Indent(); //glContext = new X11GLContext(mode, window);