diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 63474bb8752..0d8e7dbae15 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -425,11 +425,9 @@ dri2Throttle(struct dri2_screen *psc, struct dri2_drawable *draw, enum __DRI2throttleReason reason) { - if (psc->throttle) { - __DRIcontext *ctx = dri2GetCurrentContext(); + __DRIcontext *ctx = dri2GetCurrentContext(); - psc->throttle->throttle(ctx, draw->driDrawable, reason); - } + dri_throttle(ctx, draw->driDrawable, reason); } /** @@ -872,7 +870,6 @@ dri2BindExtensions(struct dri2_screen *psc, struct glx_display * priv, } static const struct dri_extension_match exts[] = { - { __DRI2_THROTTLE, 1, offsetof(struct dri2_screen, throttle), true }, { __DRI2_INTEROP, 1, offsetof(struct dri2_screen, interop), true }, }; loader_bind_extensions(psc, exts, ARRAY_SIZE(exts), extensions); diff --git a/src/glx/dri2_priv.h b/src/glx/dri2_priv.h index 33b515da22f..041faf3dd58 100644 --- a/src/glx/dri2_priv.h +++ b/src/glx/dri2_priv.h @@ -45,7 +45,6 @@ struct dri2_screen { __DRIscreen *driScreen; __GLXDRIscreen vtable; - const __DRI2throttleExtension *throttle; const __DRI2interopExtension *interop; const __DRIconfig **driver_configs;