egl: Always return the previously bound context.
authorChia-I Wu <olv@lunarg.com>
Sat, 27 Mar 2010 18:11:16 +0000 (02:11 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 27 Mar 2010 19:37:28 +0000 (03:37 +0800)
commit551bfe7a09b0d1bc277796edc10c649b2b07a5b7
treeac6a6bb96b27e55f82745a07495c16489b2ea68d
parent3bfa23317c6b1b52ec637a03a0b623228ffc95ef
egl: Always return the previously bound context.

When a newly bound context is the same as the previously bound one,
_eglBindContextToThread should still return the context instead of NULL.
This gives the driver a chance to flush the context.
src/egl/main/eglcontext.c