Ensure UnsupportedPlatform is used for Factory.Embedded if OpenGL|ES is not supported.
This commit is contained in:
parent
3462e80978
commit
6336246f57
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ namespace OpenTK.Platform
|
||||||
else if (Configuration.RunningOnMacOS) Embedded = new Egl.EglMacPlatformFactory();
|
else if (Configuration.RunningOnMacOS) Embedded = new Egl.EglMacPlatformFactory();
|
||||||
else Embedded = new UnsupportedPlatform();
|
else Embedded = new UnsupportedPlatform();
|
||||||
}
|
}
|
||||||
|
else Embedded = new UnsupportedPlatform();
|
||||||
|
|
||||||
if (Default is UnsupportedPlatform && !(Embedded is UnsupportedPlatform))
|
if (Default is UnsupportedPlatform && !(Embedded is UnsupportedPlatform))
|
||||||
Default = Embedded;
|
Default = Embedded;
|
||||||
|
|
Loading…
Reference in a new issue