Browse Source

Merge branch 'features/support-opengles-v3' into render-inside-win-ui-comp-tree

# Conflicts:
#	src/Avalonia.OpenGL/EglDisplay.cs
tmp-winuicomp_with_manual_fbo
Dan Walmsley 6 years ago
parent
commit
8b0f75f6a0
  1. 26
      src/Avalonia.OpenGL/EglDisplay.cs

26
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))

Loading…
Cancel
Save