Inherit from GLArea instead of DrawingArea.
authorJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 09:21:22 +0000 (11:21 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 09:21:22 +0000 (11:21 +0200)
src/OpenTK.GLWidget/GLWidget.cs

index 5abababc094d9f622944de76083e81014369602b..53d318975da7b46100e9a89874d9e6f8ad1b72e6 100644 (file)
@@ -7,6 +7,7 @@ using OpenTK.Platform;
 
 using Gtk;
 using OpenTK.OSX;
+using OpenTK.Platform.X11;
 using OpenTK.Win;
 using OpenTK.X11;
 
@@ -17,7 +18,7 @@ namespace OpenTK
     /// </summary>
     [CLSCompliant(false)]
     [ToolboxItem(true)]
-    public class GLWidget: DrawingArea
+    public class GLWidget: GLArea
     {
 
         private static int _GraphicsContextCount;
@@ -386,6 +387,7 @@ namespace OpenTK
             }
 
             // GraphicsContext
+
             _GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, GraphicsContextFlags);
             _GraphicsContext.MakeCurrent(_WindowInfo);