diff options
author | Chad Versace <[email protected]> | 2014-01-27 16:42:10 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:36:03 -0700 |
commit | a218765478e5207f4337406d98865c6b5cf3784e (patch) | |
tree | f37d95284dbcd13de3778298b4041bf011f94338 /src/egl/drivers/dri2/platform_wayland.c | |
parent | d019cd81b566649e9dbe157266f70841a10e00fa (diff) |
egl/wl,x11: Call dri2_swap_interval() statically
Don't call it through the driver dispatch table. Just call it
statically.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_wayland.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index aea2793a63b..6a75355b587 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -47,6 +47,10 @@ enum wl_drm_format_flags { HAS_RGB565 = 4, }; +static EGLBoolean +dri2_wl_swap_interval(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, + EGLint interval); + static void sync_callback(void *data, struct wl_callback *callback, uint32_t serial) { @@ -191,7 +195,7 @@ dri2_wl_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp, window, attrib_list); if (surf != NULL) - drv->API.SwapInterval(drv, disp, surf, dri2_dpy->default_swap_interval); + dri2_wl_swap_interval(drv, disp, surf, dri2_dpy->default_swap_interval); return surf; } |