diff options
author | Chia-I Wu <[email protected]> | 2009-07-17 11:41:02 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-07-17 11:41:02 -0600 |
commit | 75da80b29556e6dbbba21e5297ca440e475f65cb (patch) | |
tree | 8ae922d896d77df1e70768edaace6e12462d9bc4 /src/egl/main/egldisplay.c | |
parent | 8e92ec9fdd58bdfcdef65a995988974d3266b9ad (diff) |
egl: Support per-thread info.
This commit introduces a "current" system to manage per-thread info. It
uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined.
If none of them are defined, it uses a dummy implementation that is just
like before.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r-- | src/egl/main/egldisplay.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 47a2323eafb..01f67f6e470 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -86,17 +86,6 @@ _eglSaveDisplay(_EGLDisplay *dpy) } -_EGLDisplay * -_eglGetCurrentDisplay(void) -{ - _EGLContext *ctx = _eglGetCurrentContext(); - if (ctx) - return ctx->Display; - else - return NULL; -} - - /** * Free all the data hanging of an _EGLDisplay object, but not * the object itself. |