summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcontext.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-27 23:31:20 +0800
committerChia-I Wu <[email protected]>2010-01-28 17:28:47 +0800
commit959481ad70b033a254f4d7d0a94dfdfab6b94c15 (patch)
tree6dbb02bb9709f44c8cfe90c20574d3ff197af572 /src/egl/main/eglcontext.h
parenta933259daa98615ad7473c53623a96f612e9a311 (diff)
egl: Add _eglBindContext.
It works similar to _eglMakeCurrent, except that the old context and surfaces are returned instead of destroyed. _eglMakeCurrent is now calling the new _eglBindContext.
Diffstat (limited to 'src/egl/main/eglcontext.h')
-rw-r--r--src/egl/main/eglcontext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h
index be00642d134..84d8deed51c 100644
--- a/src/egl/main/eglcontext.h
+++ b/src/egl/main/eglcontext.h
@@ -48,6 +48,10 @@ _eglQueryContext(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *ctx, EGLint att
PUBLIC EGLBoolean
+_eglBindContext(_EGLContext **ctx, _EGLSurface **draw, _EGLSurface **read);
+
+
+PUBLIC EGLBoolean
_eglMakeCurrent(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *draw, _EGLSurface *read, _EGLContext *ctx);