OSDN Git Service

egl: Make eglMakeCurrent more robust.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 3 Aug 2009 17:35:14 +0000 (11:35 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Aug 2009 17:35:14 +0000 (11:35 -0600)
commit8cdc6c66f9d8ede00d02108070d269d3aca8b130
treeae673cec2416ff8e8d12e98c56d55b136536b0f9
parent07ee01365a8bddf6f50821ecd585784498a25ff0
egl: Make eglMakeCurrent more robust.

Now that a current surface points back to its binding context, and a
current context points back to its binding thread, make sure there is no
dangling pointers.  This commit reworks eglMakeCurrent, adds more checks
to avoid stealing context or surfaces from another thread, and correctly
destroys unlinked context and surfaces.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/eglcontext.c