diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2021-01-27 13:25:54 -0800 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2021-02-01 23:17:34 -0800 |
commit | cbf9d08aeac1ac7b4619d3808f1ccea750f06ccc (patch) | |
tree | 3babfea6d5ae4ad41fadff0963417fff286f1ed3 | |
parent | d74c70f33f018135cb5042a7109725acfed583fb (diff) |
xquartz: Remove support for Panther and earlier versions of macOS
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 74aef85bd88a1fdb22d445ad14975232a7bebdd7)
-rw-r--r-- | hw/xquartz/xpr/dri.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/hw/xquartz/xpr/dri.c b/hw/xquartz/xpr/dri.c index 565d94f5f..67ea6a006 100644 --- a/hw/xquartz/xpr/dri.c +++ b/hw/xquartz/xpr/dri.c @@ -216,12 +216,10 @@ DRIUpdateSurface(DRIDrawablePrivPtr pDRIDrawablePriv, DrawablePtr pDraw) if (pDRIDrawablePriv->sid == 0) return; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 wc.depth = (pDraw->bitsPerPixel == 32 ? XP_DEPTH_ARGB8888 : pDraw->bitsPerPixel == 16 ? XP_DEPTH_RGB555 : XP_DEPTH_NIL); if (wc.depth != XP_DEPTH_NIL) flags |= XP_DEPTH; -#endif if (pDraw->type == DRAWABLE_WINDOW) { WindowPtr pWin = (WindowPtr)pDraw; @@ -382,17 +380,13 @@ DRICreateSurface(ScreenPtr pScreen, Drawable id, if (NULL == pDRIDrawablePriv) return FALSE; /*error*/ - } -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 - else if (pDrawable->type == DRAWABLE_PIXMAP) { + } else if (pDrawable->type == DRAWABLE_PIXMAP) { pDRIDrawablePriv = CreateSurfaceForPixmap(pScreen, (PixmapPtr)pDrawable); if (NULL == pDRIDrawablePriv) return FALSE; /*error*/ - } -#endif - else { + } else { /* We handle GLXPbuffers in a different way (via CGL). */ return FALSE; } |