Browse Source

Specify EGL_STENCIL_SIZE and EGL_DEPTH_SIZE

Nikita Tsukanov 7 years ago
parent
commit
61d890660a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Avalonia.OpenGL/EglDisplay.cs

+ 2 - 0
src/Avalonia.OpenGL/EglDisplay.cs

@@ -71,6 +71,8 @@ namespace Avalonia.OpenGL
                     EGL_GREEN_SIZE, 8,
                     EGL_BLUE_SIZE, 8,
                     EGL_ALPHA_SIZE, 8,
+                    EGL_STENCIL_SIZE, 8,
+                    EGL_DEPTH_SIZE, 8,
                     EGL_NONE
                 };
                 if (!_egl.ChooseConfig(_display, attribs, out _config, 1, out int numConfigs))