diff options
author | Chia-I Wu <[email protected]> | 2010-01-31 11:26:56 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-31 11:31:58 +0800 |
commit | 996fd61442e4186e23418cc8a3b0cd593398be26 (patch) | |
tree | 44d3eaed3e7b106a05c2ade2c9bb31d7555c56f0 /src/egl/main/eglscreen.c | |
parent | 89e6eb5fbe7fb036f5d1a5fef040cc9635a10672 (diff) |
egl: Remove code blocks that are commented out.
They are either unit tests or to demonstrate how functions are supposed
to be used. The unit test is outdated and it should be better to take a
look at any of the working drivers to see how a function is used.
Diffstat (limited to 'src/egl/main/eglscreen.c')
-rw-r--r-- | src/egl/main/eglscreen.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/egl/main/eglscreen.c b/src/egl/main/eglscreen.c index 1079a1cbe61..97a405a4b4b 100644 --- a/src/egl/main/eglscreen.c +++ b/src/egl/main/eglscreen.c @@ -111,27 +111,12 @@ _eglGetScreensMESA(_EGLDriver *drv, _EGLDisplay *display, EGLScreenMESA *screens /** - * Example function - drivers should do a proper implementation. + * Drivers should do a proper implementation. */ _EGLSurface * _eglCreateScreenSurfaceMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, const EGLint *attrib_list) { -#if 0 /* THIS IS JUST EXAMPLE CODE */ - _EGLSurface *surf; - - surf = (_EGLSurface *) calloc(1, sizeof(_EGLSurface)); - if (!surf) - return NULL; - - if (!_eglInitSurface(drv, surf, EGL_SCREEN_BIT_MESA, - conf, attrib_list)) { - free(surf); - return NULL; - } - - return surf; -#endif return NULL; } |