EGLBoolean _eglGetScreensMESA(_EGLDriver *drv, _EGLDisplay *display, EGLScreenMESA *screens, EGLint max_screens, EGLint *num_screens) { *num_screens = _eglFlattenArray(display->Screens, (void *) screens, sizeof(screens[0]), max_screens, _eglFlattenScreen); return EGL_TRUE; }
/** * Fallback for eglGetConfigs. */ EGLBoolean _eglGetConfigs(_EGLDriver *drv, _EGLDisplay *disp, EGLConfig *configs, EGLint config_size, EGLint *num_config) { if (!num_config) return _eglError(EGL_BAD_PARAMETER, "eglGetConfigs"); *num_config = _eglFlattenArray(disp->Configs, (void *) configs, sizeof(configs[0]), config_size, _eglFlattenConfig); return EGL_TRUE; }