mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-16 15:47:37 +00:00
Fixed GraphicsContextFlags.Embedded matching.
This commit is contained in:
parent
b240db8cd9
commit
2e6a80624b
|
@ -118,10 +118,10 @@ namespace OpenTK.Graphics
|
||||||
if (designMode)
|
if (designMode)
|
||||||
implementation = new Platform.Dummy.DummyGLContext();
|
implementation = new Platform.Dummy.DummyGLContext();
|
||||||
else
|
else
|
||||||
switch ((int)(flags & GraphicsContextFlags.Embedded))
|
switch ((flags & GraphicsContextFlags.Embedded) == GraphicsContextFlags.Embedded)
|
||||||
{
|
{
|
||||||
case 0: implementation = Factory.Default.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags); break;
|
case false: implementation = Factory.Default.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags); break;
|
||||||
case 1: implementation = Factory.Embedded.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags); break;
|
case true: implementation = Factory.Embedded.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
lock (context_lock)
|
lock (context_lock)
|
||||||
|
|
Loading…
Reference in a new issue