[Mac] Use Cgl.GetCurrentContext instead of Agl
CGL appears to work with both AGL and NSOpenGL contexts, whereas AGL is limited to AGL contexts. This allows us to be more flexible in terms of implementation (i.e. we can use Cgl.GetCurrentContext to retrieve a handle to a context created through SDL, which uses NSOpenGL internally.)
This commit is contained in:
parent
0d1df41393
commit
b79d951e62
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace OpenTK.Platform.MacOS
|
|||
{
|
||||
return (GraphicsContext.GetCurrentContextDelegate)delegate
|
||||
{
|
||||
return new ContextHandle(Agl.aglGetCurrentContext());
|
||||
return new ContextHandle(Cgl.GetCurrentContext());
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue