diff options
-rw-r--r-- | src/egl/main/egldriver.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index ff0011c4b1..7790436489 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -86,6 +86,30 @@ library_suffix(void) } +#else /* _EGL_PLATFORM_NO_OS */ + + +typedef void *lib_handle; + +static INLINE void * +open_library(const char *filename) +{ + return (void *) filename; +} + +static INLINE void +close_library(void *lib) +{ +} + + +static const char * +library_suffix(void) +{ + return NULL; +} + + #endif @@ -123,6 +147,8 @@ _eglOpenLibrary(const char *driverPath, lib_handle *handle) else { error = dlerror(); } +#else /* _EGL_PLATFORM_NO_OS */ + mainFunc = (_EGLMain_t) _eglMain; #endif if (!lib) { @@ -501,6 +527,10 @@ _eglAddDefaultDrivers(void) "egl_dri2", "egl_glx" }; +#else /* _EGL_PLATFORM_NO_OS */ + const char *DefaultDriverNames[] = { + "<builtin>" + }; #endif for (i = 0; i < ARRAY_SIZE(DefaultDriverNames); i++) { |