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 3462e80978
commit 6336246f57

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;