mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
apple: ifdef out come glapi-foo on darwin
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 8593bb32ea)
This commit is contained in:
parent
7c4cc8d2b9
commit
d8802cd242
1 changed files with 4 additions and 0 deletions
|
|
@ -234,6 +234,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
|
|||
return False;
|
||||
}
|
||||
|
||||
#ifndef GLX_USE_APPLEGL
|
||||
_glapi_check_multithread();
|
||||
|
||||
if (gc != NULL && gc->thread_id != 0 && gc->thread_id != _glthread_GetID()) {
|
||||
|
|
@ -241,6 +242,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
|
|||
BadAccess, X_GLXMakeContextCurrent);
|
||||
return False;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (oldGC == gc &&
|
||||
gc->currentDrawable == draw && gc->currentReadable == read)
|
||||
|
|
@ -258,7 +260,9 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
|
|||
gc->currentDpy = dpy;
|
||||
gc->currentDrawable = draw;
|
||||
gc->currentReadable = read;
|
||||
#ifndef GLX_USE_APPLEGL
|
||||
gc->thread_id = _glthread_GetID();
|
||||
#endif
|
||||
__glXSetCurrentContext(gc);
|
||||
ret = gc->vtable->bind(gc, oldGC, draw, read);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue