|
|
@ -36,7 +36,7 @@ namespace Avalonia.OpenGL |
|
|
throw new OpenGlException("eglGetPlatformDisplayEXT is not supported by libegl.dll"); |
|
|
throw new OpenGlException("eglGetPlatformDisplayEXT is not supported by libegl.dll"); |
|
|
|
|
|
|
|
|
var allowedApis = AvaloniaLocator.Current.GetService<AngleOptions>()?.AllowedPlatformApis |
|
|
var allowedApis = AvaloniaLocator.Current.GetService<AngleOptions>()?.AllowedPlatformApis |
|
|
?? new List<AngleOptions.PlatformApi> {AngleOptions.PlatformApi.DirectX11}; |
|
|
?? new [] {AngleOptions.PlatformApi.DirectX11}; |
|
|
|
|
|
|
|
|
foreach (var platformApi in allowedApis) |
|
|
foreach (var platformApi in allowedApis) |
|
|
{ |
|
|
{ |
|
|
|