_EGLDriver * psl1ght_eglMain(const char *args) { _EGLDriver *drv; init_loader(&loader); drv = egl_g3d_create_driver(&loader); if (drv) { drv->Name = "Gallium"; drv->Unload = egl_g3d_unload; } return drv; }
_EGLDriver * _EGL_MAIN(const char *args) { const struct egl_g3d_loader *loader; _EGLDriver *drv; loader = loader_init(); drv = egl_g3d_create_driver(loader); if (!drv) { loader_fini(); return NULL; } drv->Name = "Gallium"; drv->Unload = egl_g3d_unload; return drv; }