diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-10-01 00:10:03 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-12-09 19:39:22 -0500 |
commit | 25ed79d8303afabd873132569d6dc282886ad7d6 (patch) | |
tree | b9e98944cfef6980de56bf7065dc302b3395bc07 /src | |
parent | 0c0eda393ad5048528f2664d03046ff7f7d3a64c (diff) |
Revert "egl: Drop broken _EGL_PLATFORM_NO_OS code"
This reverts commit 021a68b7e83259faedacea8b3a18e754bed6277a.
Diffstat (limited to 'src')
-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++) { |