mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 10:25:31 +00:00
Fixed GraphicsContextFlags.Embedded matching.
This commit is contained in:
parent
1beceffa2a
commit
95d4f695b7
|
@ -118,10 +118,10 @@ namespace OpenTK.Graphics
|
|||
if (designMode)
|
||||
implementation = new Platform.Dummy.DummyGLContext();
|
||||
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 1: implementation = Factory.Embedded.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 true: implementation = Factory.Embedded.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags); break;
|
||||
}
|
||||
|
||||
lock (context_lock)
|
||||
|
|
Loading…
Reference in a new issue