Enable error checking for debug contexts.
This commit is contained in:
parent
c8ca1f33df
commit
881b7553d9
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue