diff options
author | Chia-I Wu <[email protected]> | 2011-12-20 16:28:20 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-12-20 16:59:09 +0800 |
commit | f957cac772d34b3406be3236b81571e456ee40e8 (patch) | |
tree | 1627dcf5771967c0b5677618638d0e31c8cbf63f /src/egl/main/eglapi.c | |
parent | ed1ff2acec2cdfe3eace9f4caa6cfe5e0f175534 (diff) |
egl: remove #ifdef's for official extensions
There is no point in having them when we distribute eglext.h.
As for unofficial extensions, there is a chance that we might remove some of
them evetually. Keeping the #ifdef's for now should make that easier.
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 5d186c60e5a..a6782d8838b 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -217,9 +217,6 @@ _eglCheckConfig(_EGLDisplay *disp, _EGLConfig *conf, const char *msg) } -#ifdef EGL_KHR_reusable_sync - - static INLINE _EGLDriver * _eglCheckSync(_EGLDisplay *disp, _EGLSync *s, const char *msg) { @@ -234,9 +231,6 @@ _eglCheckSync(_EGLDisplay *disp, _EGLSync *s, const char *msg) } -#endif /* EGL_KHR_reusable_sync */ - - #ifdef EGL_MESA_screen_surface @@ -759,7 +753,6 @@ eglWaitClient(void) EGLBoolean EGLAPIENTRY eglWaitGL(void) { -#ifdef EGL_VERSION_1_2 _EGLThreadInfo *t = _eglGetCurrentThread(); EGLint api_index = t->CurrentAPIIndex; EGLint es_index = _eglConvertApiToIndex(EGL_OPENGL_ES_API); @@ -772,9 +765,6 @@ eglWaitGL(void) ret = eglWaitClient(); t->CurrentAPIIndex = api_index; return ret; -#else - return eglWaitClient(); -#endif } @@ -933,10 +923,8 @@ eglGetProcAddress(const char *procname) #ifdef EGL_MESA_drm_display { "eglGetDRMDisplayMESA", (_EGLProc) eglGetDRMDisplayMESA }, #endif -#ifdef EGL_KHR_image_base { "eglCreateImageKHR", (_EGLProc) eglCreateImageKHR }, { "eglDestroyImageKHR", (_EGLProc) eglDestroyImageKHR }, -#endif /* EGL_KHR_image_base */ #ifdef EGL_NOK_swap_region { "eglSwapBuffersRegionNOK", (_EGLProc) eglSwapBuffersRegionNOK }, #endif @@ -1208,9 +1196,6 @@ eglGetDRMDisplayMESA(int fd) ** EGL 1.2 **/ -#ifdef EGL_VERSION_1_2 - - /** * Specify the client API to use for subsequent calls including: * eglCreateContext() @@ -1309,12 +1294,6 @@ eglReleaseThread(void) } -#endif /* EGL_VERSION_1_2 */ - - -#ifdef EGL_KHR_image_base - - EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attr_list) @@ -1360,12 +1339,6 @@ eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image) } -#endif /* EGL_KHR_image_base */ - - -#ifdef EGL_KHR_reusable_sync - - EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list) { @@ -1451,9 +1424,6 @@ eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *v } -#endif /* EGL_KHR_reusable_sync */ - - #ifdef EGL_NOK_swap_region EGLBoolean EGLAPIENTRY |