Ensure UnsupportedPlatform is used for Factory.Embedded if OpenGL|ES is not supported.

This commit is contained in:
the_fiddler 2009-08-14 14:10:56 +00:00
parent 0e02f67749
commit 84a42514e8

View file

@ -57,6 +57,7 @@ namespace OpenTK.Platform
else if (Configuration.RunningOnMacOS) Embedded = new Egl.EglMacPlatformFactory();
else Embedded = new UnsupportedPlatform();
}
else Embedded = new UnsupportedPlatform();
if (Default is UnsupportedPlatform && !(Embedded is UnsupportedPlatform))
Default = Embedded;