mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 01:25:39 +00:00
Use GLArea MakeCurrent method in disposal as well.
This commit is contained in:
parent
ed126403b3
commit
eb317df44c
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue