diff options
author | Mathias Agopian <mathias@google.com> | 2012-01-30 18:20:52 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-01-30 18:20:52 -0800 |
commit | 9eb95992ea34e40e83d78f5c211933246c491f0f (patch) | |
tree | 143b53dda12df1581b22961db813aefb5149788c /opengl/java | |
parent | 11c5db5e29f9e4ac4cdb0bb49197b48deb657e36 (diff) | |
download | frameworks_base-9eb95992ea34e40e83d78f5c211933246c491f0f.zip frameworks_base-9eb95992ea34e40e83d78f5c211933246c491f0f.tar.gz frameworks_base-9eb95992ea34e40e83d78f5c211933246c491f0f.tar.bz2 |
fix a race condition in eglMakeCurrent()
it would happen when a context was made non-current, in this
case we would call the implementation's eglMakeCurrent() which
would succeed, if we're rescheduled at that point, another
eglMakeCurrent() could make that context current to another thread,
however, when we came back to the original call we would
overwrite egl_context_t internal state.
this is fixed by moving the critical section under
egl_display_t's lock.
Change-Id: I743c85696e13263d3a9570824940263df0caacdc
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions