From b81fdbe630b885a88f3fa4da0300a465f126b2c5 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 11 Nov 2007 19:28:55 +0000 Subject: [PATCH] X11GLContext plays better with Windows.Forms. --- Source/OpenTK/Platform/X11/X11GLContext.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/OpenTK/Platform/X11/X11GLContext.cs b/Source/OpenTK/Platform/X11/X11GLContext.cs index a5f55453..c868991f 100644 --- a/Source/OpenTK/Platform/X11/X11GLContext.cs +++ b/Source/OpenTK/Platform/X11/X11GLContext.cs @@ -35,8 +35,6 @@ namespace OpenTK.Platform.X11 throw new ArgumentNullException("IWindowInfo cannot be null."); this.windowInfo = new WindowInfo(info); - if (this.windowInfo == null) - throw new Exception("Problem"); this.mode = mode; this.ChooseContext(); } @@ -56,12 +54,12 @@ namespace OpenTK.Platform.X11 Debug.Print("Preparing visual for System.Windows.Forms (compatibility mode)"); visualAttributes.Add((int)Glx.Enums.GLXAttribute.RGBA); - visualAttributes.Add((int)Glx.Enums.GLXAttribute.RED_SIZE); + /*visualAttributes.Add((int)Glx.Enums.GLXAttribute.RED_SIZE); visualAttributes.Add((int)1); visualAttributes.Add((int)Glx.Enums.GLXAttribute.GREEN_SIZE); visualAttributes.Add((int)1); visualAttributes.Add((int)Glx.Enums.GLXAttribute.BLUE_SIZE); - visualAttributes.Add((int)1); + visualAttributes.Add((int)1);*/ visualAttributes.Add((int)Glx.Enums.GLXAttribute.DEPTH_SIZE); visualAttributes.Add((int)1); visualAttributes.Add((int)Glx.Enums.GLXAttribute.DOUBLEBUFFER);