summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-01-30 18:20:52 -0800
committerMathias Agopian <mathias@google.com>2012-01-30 18:20:52 -0800
commitfb87e54a9af8bc5063ca4deebe81d90126992480 (patch)
treea7bc38328dfbcdfc5221a2334b28be7cfe70cebb /opengl/tests/gl_basic/gl_basic.cpp
parent0d6aa287d1832da5e817bd778731f2f2e7902f90 (diff)
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/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions