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:
committed by
Marge Bot
parent
568a4ca899
commit
191d7c6cb6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user