Use GLArea MakeCurrent method in disposal as well.

This commit is contained in:
Jarl Gullberg 2017-09-15 12:42:57 +02:00
parent ed126403b3
commit eb317df44c
No known key found for this signature in database
GPG key ID: FBB69BD7CAE095A0

View file

@ -131,7 +131,7 @@ namespace OpenTK
#endif #endif
if (disposing) if (disposing)
{ {
_GraphicsContext.MakeCurrent(_WindowInfo); MakeCurrent();
OnShuttingDown(); OnShuttingDown();
if (GraphicsContext.ShareContexts && (Interlocked.Decrement(ref _GraphicsContextCount) == 0)) if (GraphicsContext.ShareContexts && (Interlocked.Decrement(ref _GraphicsContextCount) == 0))
{ {