diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index 15824a21451..c2c476687bc 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -156,8 +156,12 @@ kopper_get_pixmap_buffer(struct dri_drawable *drawable, */ struct dri_screen *screen = drawable->screen; +#ifndef GLX_USE_APPLE drawable->image = loader_dri3_get_pixmap_buffer(conn, pixmap, screen, fourcc, drawable->screen->dmabuf_import, &width, &height, drawable); +#else + drawable->image = NULL; +#endif if (!drawable->image) return NULL;