From d677aef6c392ec05890de1de31da2228f350f49e Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Fri, 15 Sep 2017 11:21:22 +0200 Subject: [PATCH] Inherit from GLArea instead of DrawingArea. --- src/OpenTK.GLWidget/GLWidget.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index 5abababc..53d31897 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -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 /// [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);