From: Jarl Gullberg Date: Sun, 1 Oct 2017 18:16:45 +0000 (+0200) Subject: Enable error checking for debug contexts. X-Git-Tag: v3.0.0~22^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=881b7553d992da58c2963ed2b4b1b2a286d96291;p=platform%2Fcore%2Fcsapi%2Fopentk.git Enable error checking for debug contexts. --- diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index da6e580..a31b3da 100644 --- 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);