Switch: Fixes for new mesa

This commit is contained in:
Vicki Pfau 2018-09-18 20:51:35 -07:00
parent 9564a1ab60
commit 4b012035d8
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}