return dri2_dpy->interop->export_object(dri2_ctx->dri_context, in, out);
}
-static void
-dri2_unload(_EGLDriver *drv)
-{
- struct dri2_egl_driver *dri2_drv = dri2_egl_driver(drv);
-
- free(dri2_drv);
-}
-
static EGLBoolean
dri2_load(_EGLDriver *drv)
{
dri2_drv->base.API.DupNativeFenceFDANDROID = dri2_dup_native_fence_fd;
dri2_drv->base.Name = "DRI2";
- dri2_drv->base.Unload = dri2_unload;
return &dri2_drv->base;
}
}
-extern "C"
-void
-haiku_unload(_EGLDriver* drv)
-{
-
-}
-
-
/**
* This is the main entrypoint into the driver, called by libEGL.
* Create a new _EGLDriver object and init its dispatch table.
driver->base.API.SwapBuffers = haiku_swap_buffers;
driver->base.Name = "Haiku";
- driver->base.Unload = haiku_unload;
TRACE("API Calls defined\n");
_eglUnloadDrivers(void)
{
/* this is called at atexit time */
- if (_eglDriver && _eglDriver->Unload)
- _eglDriver->Unload(_eglDriver);
-
+ free(_eglDriver);
_eglDriver = NULL;
}
{
const char *Name; /**< name of this driver */
- /**
- * Release the driver resource.
- *
- * It is called before dlclose().
- */
- void (*Unload)(_EGLDriver *drv);
-
_EGLAPI API; /**< EGL API dispatch table */
};