projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4112a6
)
Inherit from GLArea instead of DrawingArea.
author
Jarl Gullberg
<jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 09:21:22 +0000
(11:21 +0200)
committer
Jarl Gullberg
<jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 09:21:22 +0000
(11:21 +0200)
src/OpenTK.GLWidget/GLWidget.cs
patch
|
blob
|
history
diff --git
a/src/OpenTK.GLWidget/GLWidget.cs
b/src/OpenTK.GLWidget/GLWidget.cs
index 5abababc094d9f622944de76083e81014369602b..53d318975da7b46100e9a89874d9e6f8ad1b72e6 100644
(file)
--- 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
/// </summary>
[CLSCompliant(false)]
[ToolboxItem(true)]
- public class GLWidget:
Drawing
Area
+ public class GLWidget:
GL
Area
{
private static int _GraphicsContextCount;
@@
-386,6
+387,7
@@
namespace OpenTK
}
// GraphicsContext
+
_GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, GraphicsContextFlags);
_GraphicsContext.MakeCurrent(_WindowInfo);