summaryrefslogtreecommitdiff
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-27 14:21:25 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-27 14:21:25 -0600
commit5e7dba541298a29f175f9d077bf6f63030465d94 (patch)
treeaceb7df27599a1f3e0eb8ed0da365cc47e3039ca /src/egl/main/eglapi.c
parent209a557574b9833da3d6ac299c83f4cddfff6910 (diff)
eliminate the context hash table
In EGL 1.4 the opaque EGLContext type is a pointer so we can just cast between public EGLContext handles and private _EGLContext pointers.
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index f9b3f5921a..c57d29dda6 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -280,10 +280,7 @@ EGLContext EGLAPIENTRY
eglGetCurrentContext(void)
{
_EGLContext *ctx = _eglGetCurrentContext();
- if (ctx)
- return ctx->Handle;
- else
- return EGL_NO_CONTEXT;
+ return _eglGetContextHandle(ctx);
}