From 4b012035d83026cb86e9126dcafee9a02c9f2cd9 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 18 Sep 2018 20:51:35 -0700 Subject: [PATCH] Switch: Fixes for new mesa --- src/platform/switch/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platform/switch/main.c b/src/platform/switch/main.c index cc6b43111..3c8b1d999 100644 --- a/src/platform/switch/main.c +++ b/src/platform/switch/main.c @@ -105,11 +105,11 @@ static bool initEgl() { 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; }