kopper: Add '#if' guard around loader_dri3_get_pixmap_buffer to stop missing symbol on MacOS.

MacOS does not support DRI3.

Reviewed-By: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32568>
This commit is contained in:
duncan.hopkins
2024-11-26 10:20:33 +00:00
committed by Marge Bot
parent 568a4ca899
commit 191d7c6cb6
+4
View File
@@ -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;