+ /* New surface created. Make it active. */
+ assert(cur_context && cur_context->egl_context != EGL_NO_CONTEXT);
+ res = eglMakeCurrent(egl_display, egl_surface, egl_surface,
+ cur_context->egl_context);
+
+ if (!res) {
+ SDL_SetError("EGL failed to change current surface: %s",
+ get_error_string(eglGetError()));
+ cur_context = NULL;
+ return -2;
+ }
+