143
143
auto native_display = mir_connection_get_egl_native_display(connection);
144
144
auto egl_display = eglGetDisplay(native_display);
145
145
eglInitialize(egl_display, &major, &minor);
146
eglChooseConfig(egl_display, attribs, &egl_config, 1, &n);
146
eglChooseConfig(egl_display, attribs, &egl_config, 1, &n);
149
149
auto native_window = static_cast<EGLNativeWindowType>(
152
152
egl_surface = eglCreateWindowSurface(egl_display, egl_config, native_window, NULL);
153
153
context = eglCreateContext(egl_display, egl_config, EGL_NO_CONTEXT, context_attribs);
154
154
eglMakeCurrent(egl_display, egl_surface, egl_surface, context);