Fixed GraphicsContextFlags.Embedded matching.

This commit is contained in:
the_fiddler 2009-08-14 14:18:30 +00:00
parent b240db8cd9
commit 2e6a80624b

View file

@ -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)