diff options
author | Eric Anholt <[email protected]> | 2012-12-27 17:39:37 -0800 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-16 14:14:18 +1100 |
commit | 3b7b6adf3ac688f75f11624e551800d0d978293b (patch) | |
tree | 765b6d428c22127220e1e0dd01450064ce2d77d3 /src/egl/main | |
parent | 6b70d9fce39c32929372fb8cf62f1f9072fe91e1 (diff) |
egl: Implement __DRI_BACKGROUND_CALLABLE
v2: (Timothy Arceri) use C99 initializers.
Acked-by: Timothy Arceri <[email protected]>
Acked-by: Marek Olšák <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Tested-by: Mike Lothian <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/eglcontext.c | 2 | ||||
-rw-r--r-- | src/egl/main/eglcontext.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 5313e1dabcc..05cc523c8d1 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -583,7 +583,7 @@ _eglQueryContext(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *c, * * Note that the context may be NULL. */ -static _EGLContext * +_EGLContext * _eglBindContextToThread(_EGLContext *ctx, _EGLThreadInfo *t) { _EGLContext *oldCtx; diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h index 69bf77d8aff..f2fe8066265 100644 --- a/src/egl/main/eglcontext.h +++ b/src/egl/main/eglcontext.h @@ -82,6 +82,9 @@ _eglBindContext(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read, _EGLContext **old_ctx, _EGLSurface **old_draw, _EGLSurface **old_read); +extern _EGLContext * +_eglBindContextToThread(_EGLContext *ctx, _EGLThreadInfo *t); + /** * Increment reference count for the context. |