diff --git a/src/Avalonia.OpenGL/EglDisplay.cs b/src/Avalonia.OpenGL/EglDisplay.cs index a3d11f2311..ca7e9b66c3 100644 --- a/src/Avalonia.OpenGL/EglDisplay.cs +++ b/src/Avalonia.OpenGL/EglDisplay.cs @@ -63,6 +63,18 @@ namespace Avalonia.OpenGL foreach (var cfg in new[] { + new + { + Attributes = new[] + { + EGL_CONTEXT_MAJOR_VERSION, 3, + EGL_CONTEXT_MINOR_VERSION, 1, + EGL_NONE + }, + Api = EGL_OPENGL_ES_API, + RenderableTypeBit = EGL_OPENGL_ES3_BIT, + Version = new GlVersion(GlProfileType.OpenGLES, 3, 1) + }, new { Attributes = new[] @@ -74,7 +86,19 @@ namespace Avalonia.OpenGL Api = EGL_OPENGL_ES_API, RenderableTypeBit = EGL_OPENGL_ES3_BIT, Version = new GlVersion(GlProfileType.OpenGLES, 3, 0) - } + }, + new + { + Attributes = new[] + { + EGL_CONTEXT_MAJOR_VERSION, 2, + EGL_CONTEXT_MINOR_VERSION, 0, + EGL_NONE + }, + Api = EGL_OPENGL_ES_API, + RenderableTypeBit = EGL_OPENGL_ES2_BIT, + Version = new GlVersion(GlProfileType.OpenGLES, 2, 0) + }, }) { if (!_egl.BindApi(cfg.Api))