if (!num_config)
RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE);
- ret = drv->API.GetConfigs(drv, disp, configs, config_size, num_config);
+ if (drv->API.GetConfigs)
+ ret = drv->API.GetConfigs(drv, disp, configs, config_size, num_config);
+ else
+ ret = _eglGetConfigs(drv, disp, configs, config_size, num_config);
RETURN_EGL_EVAL(disp, ret);
}
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
- drv->API.GetConfigs = _eglGetConfigs;
drv->API.ChooseConfig = _eglChooseConfig;
drv->API.GetConfigAttrib = _eglGetConfigAttrib;