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/eglcontext.h | |
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/eglcontext.h')
-rw-r--r-- | src/egl/main/eglcontext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h index 82bfde151f3..093f65fbfb9 100644 --- a/src/egl/main/eglcontext.h +++ b/src/egl/main/eglcontext.h @@ -11,8 +11,6 @@ */ struct _egl_context { - EGLContext Handle; /* The public/opaque handle which names this object */ - _EGLDisplay *Display; /* who do I belong to? */ _EGLConfig *Config; @@ -41,6 +39,10 @@ extern void _eglRemoveContext(_EGLContext *ctx); +extern EGLContext +_eglGetContextHandle(_EGLContext *ctx); + + extern _EGLContext * _eglLookupContext(EGLContext ctx); |