diff options
author | Brian Paul <[email protected]> | 2008-05-27 14:21:25 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-27 14:21:25 -0600 |
commit | 5e7dba541298a29f175f9d077bf6f63030465d94 (patch) | |
tree | aceb7df27599a1f3e0eb8ed0da365cc47e3039ca /src/egl/main/eglapi.c | |
parent | 209a557574b9833da3d6ac299c83f4cddfff6910 (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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index f9b3f5921a7..c57d29dda67 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); } |