diff options
Diffstat (limited to 'src/egl/drivers/haiku/egl_haiku.cpp')
-rw-r--r-- | src/egl/drivers/haiku/egl_haiku.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 287760661e5..590e43f00fb 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_haiku.cpp @@ -305,22 +305,14 @@ haiku_swap_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf) /** * This is the main entrypoint into the driver, called by libEGL. - * Create a new _EGLDriver object and init its dispatch table. + * Gets an _EGLDriver object and init its dispatch table. */ extern "C" -_EGLDriver* -_eglBuiltInDriver(void) +void +_eglInitDriver(_EGLDriver *driver) { CALLED(); - _EGLDriver* driver; - driver = (_EGLDriver*) calloc(1, sizeof(*driver)); - if (!driver) { - _eglError(EGL_BAD_ALLOC, "_eglBuiltInDriverHaiku"); - return NULL; - } - - _eglInitDriverFallbacks(driver); driver->API.Initialize = init_haiku; driver->API.Terminate = haiku_terminate; driver->API.CreateContext = haiku_create_context; @@ -336,6 +328,4 @@ _eglBuiltInDriver(void) driver->Name = "Haiku"; TRACE("API Calls defined\n"); - - return driver; } |