11 ANativeWindow *nativeSurface, EGLDisplay display, QOffscreenSurface *offscreenSurface)
12 : QPlatformOffscreenSurface(offscreenSurface), m_display(display), m_surface(EGL_NO_SURFACE)
15 m_format.setAlphaBufferSize(8);
16 m_format.setRedBufferSize(8);
17 m_format.setGreenBufferSize(8);
18 m_format.setBlueBufferSize(8);
20 if (EGLConfig config = q_configFromGLFormat(m_display, m_format,
false)) {
21 const EGLint attributes[] = { EGL_NONE };
22 m_surface = eglCreateWindowSurface(m_display, config, nativeSurface, attributes);