From: Jarl Gullberg Date: Fri, 15 Sep 2017 09:21:22 +0000 (+0200) Subject: Inherit from GLArea instead of DrawingArea. X-Git-Tag: v3.0.0~22^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d677aef6c392ec05890de1de31da2228f350f49e;p=platform%2Fcore%2Fcsapi%2Fopentk.git Inherit from GLArea instead of DrawingArea. --- 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);