17QXcbEglWindow::QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration)
19 , m_glIntegration(glIntegration)
21 , m_surface(EGL_NO_SURFACE)
51 if (m_glIntegration->usingPlatformDisplay()) {
52 auto createPlatformWindowSurface =
reinterpret_cast<PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC>(
53 eglGetProcAddress(
"eglCreatePlatformWindowSurfaceEXT"));
54 m_surface = createPlatformWindowSurface(m_glIntegration->eglDisplay(),
56 reinterpret_cast<
void *>(&m_window),
62 m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window,
nullptr);