summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-02-05 11:38:34 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-02-05 11:45:01 +0800
commita35e63382e5a8b5ee81bf8c8d2cafb2da937f71c (patch)
tree238524d07c04a915b3d0197cf00dbc48826a7990 /src
parentb31255fbfdb2d9201e8d02e379b8384ee67fcfd0 (diff)
egl_dri2: Use _EGL_DRIVER_STANDARD_TYPECASTS.
It saves the driver from defining the boring typecasts itself.
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 3bdac2944c..d53f137530 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -97,35 +97,8 @@ struct dri2_egl_config
const __DRIconfig *dri_config;
};
-static struct dri2_egl_driver *
-dri2_egl_driver(_EGLDriver *drv)
-{
- return (struct dri2_egl_driver *) drv;
-}
-
-static struct dri2_egl_display *
-dri2_egl_display(_EGLDisplay *dpy)
-{
- return (struct dri2_egl_display *) dpy->DriverData;
-}
-
-static struct dri2_egl_context *
-dri2_egl_context(_EGLContext *ctx)
-{
- return (struct dri2_egl_context *) ctx;
-}
-
-static struct dri2_egl_surface *
-dri2_egl_surface(_EGLSurface *surf)
-{
- return (struct dri2_egl_surface *) surf;
-}
-
-static struct dri2_egl_config *
-dri2_egl_config(_EGLConfig *conf)
-{
- return (struct dri2_egl_config *) conf;
-}
+/* standard typecasts */
+_EGL_DRIVER_STANDARD_TYPECASTS(dri2_egl)
EGLint dri2_to_egl_attribute_map[] = {
0,