Switch: Fixes for new mesa
Vicki Pfau vi@endrift.com
Tue, 18 Sep 2018 20:51:35 -0700
1 files changed,
5 insertions(+),
5 deletions(-)
jump to
M
src/platform/switch/main.c
→
src/platform/switch/main.c
@@ -105,11 +105,11 @@ if (!s_surface) {
goto _fail1; } - //EGLint contextAttributeList[] = { - // EGL_CONTEXT_CLIENT_VERSION, 2, - // EGL_NONE - //}; - s_context = eglCreateContext(s_display, config, EGL_NO_CONTEXT, NULL); + EGLint contextAttributeList[] = { + EGL_CONTEXT_CLIENT_VERSION, 2, + EGL_NONE + }; + s_context = eglCreateContext(s_display, config, EGL_NO_CONTEXT, contextAttributeList); if (!s_context) { goto _fail2; }