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