mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
darwin: Fix build
This is a regression from e42d84eaba
https://bugs.freedesktop.org/show_bug.cgi?id=27929
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
7b640f9f70
commit
4d63be67f3
1 changed files with 4 additions and 4 deletions
|
|
@ -887,9 +887,6 @@ glXCopyContext(Display * dpy, GLXContext source,
|
|||
static Bool
|
||||
__glXIsDirect(Display * dpy, GLXContextID contextID)
|
||||
{
|
||||
#ifdef GLX_USE_APPLEGL /* TODO: apple indirect */
|
||||
return GC_IS_DIRECT(gc);
|
||||
#else
|
||||
#if !defined(USE_XCB)
|
||||
xGLXIsDirectReq *req;
|
||||
xGLXIsDirectReply reply;
|
||||
|
|
@ -925,7 +922,6 @@ __glXIsDirect(Display * dpy, GLXContextID contextID)
|
|||
|
||||
return reply.isDirect;
|
||||
#endif /* USE_XCB */
|
||||
#endif /* GLX_USE_APPLEGL */
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -943,7 +939,11 @@ glXIsDirect(Display * dpy, GLXContext gc)
|
|||
else if (GC_IS_DIRECT(gc)) {
|
||||
return GL_TRUE;
|
||||
}
|
||||
#ifdef GLX_USE_APPLEGL /* TODO: indirect on darwin */
|
||||
return GL_FALSE;
|
||||
#else
|
||||
return __glXIsDirect(dpy, gc->xid);
|
||||
#endif
|
||||
}
|
||||
|
||||
PUBLIC GLXPixmap
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue