}
static EGLBoolean
-dri2_wait_client(const _EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx)
+dri2_wait_client(_EGLDisplay *disp, _EGLContext *ctx)
{
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
_EGLSurface *surf = ctx->DrawSurface;
__DRIdrawable *dri_drawable = dri2_dpy->vtbl->get_dri_drawable(surf);
- (void) drv;
-
/* FIXME: If EGL allows frontbuffer rendering for window surfaces,
* we need to copy fake to real here.*/
{
_EGLContext *ctx = _eglGetCurrentContext();
_EGLDisplay *disp;
- const _EGLDriver *drv;
EGLBoolean ret;
if (!ctx)
/* a valid current context implies an initialized current display */
assert(disp->Initialized);
- drv = disp->Driver;
- ret = drv->WaitClient(drv, disp, ctx);
+ ret = disp->Driver->WaitClient(disp, ctx);
RETURN_EGL_EVAL(disp, ret);
}
EGLint *rects, EGLint n_rects);
/* misc functions */
- EGLBoolean (*WaitClient)(const _EGLDriver *drv, _EGLDisplay *disp,
- _EGLContext *ctx);
+ EGLBoolean (*WaitClient)(_EGLDisplay *disp, _EGLContext *ctx);
EGLBoolean (*WaitNative)(const _EGLDriver *drv, _EGLDisplay *disp,
EGLint engine);