Small fixes on OpenTK support.
This commit is contained in:
parent
cea243a3b8
commit
032a38e13b
@ -37,6 +37,11 @@ namespace Quik.OpenTK
|
||||
IsGLInitialized = true;
|
||||
}
|
||||
|
||||
window.Closing += (ea) =>
|
||||
{
|
||||
Environment.Exit(0);
|
||||
};
|
||||
|
||||
return port;
|
||||
}
|
||||
|
||||
|
@ -72,6 +72,7 @@ namespace Quik.OpenTK
|
||||
_vertexEngine.Reset();
|
||||
_vertexEngine.ProcessCommands(new QRectangle(), queue);
|
||||
|
||||
if (!_window.Context.IsCurrent)
|
||||
_window.Context.MakeCurrent();
|
||||
|
||||
if (!_glDriver.IsInit)
|
||||
|
Loading…
Reference in New Issue
Block a user