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:
c8ca1f3
)
Enable error checking for debug contexts.
author
Jarl Gullberg
<jarl.gullberg@gmail.com>
Sun, 1 Oct 2017 18:16:45 +0000
(20:16 +0200)
committer
Jarl Gullberg
<jarl.gullberg@gmail.com>
Sun, 1 Oct 2017 18:16:45 +0000
(20:16 +0200)
src/OpenTK.GLWidget/GLWidget.cs
patch
|
blob
|
history
diff --git
a/src/OpenTK.GLWidget/GLWidget.cs
b/src/OpenTK.GLWidget/GLWidget.cs
index da6e580e0c1f67a24a34a0e10586a5e881d1b600..a31b3dadfadadf648bc97bac5d0875f86e7250e3 100644
(file)
--- a/
src/OpenTK.GLWidget/GLWidget.cs
+++ b/
src/OpenTK.GLWidget/GLWidget.cs
@@
-256,6
+256,11
@@
namespace OpenTK
// Create a dummy context that will grab the GdkGLContext that is current on the thread
_GraphicsContext = new GraphicsContext(ContextHandle.Zero, null);
+ if (GraphicsContextFlags.HasFlag(GraphicsContextFlags.Debug))
+ {
+ _GraphicsContext.ErrorChecking = true;
+ }
+
if (GraphicsContext.ShareContexts)
{
Interlocked.Increment(ref _GraphicsContextCount);