Merge commit 'a3a351e5d164d0c8b461ae7af86edc0227654a76' into eclair-mr2-plus-aosp * commit 'a3a351e5d164d0c8b461ae7af86edc0227654a76': Fix stupid bug in GLThreadManager implementation.
This commit is contained in:
@ -1299,9 +1299,16 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
|
||||
|
||||
GLThread oldThread = null;
|
||||
synchronized(this) {
|
||||
mMostRecentGLThread = thread;
|
||||
oldThread = mMostRecentGLThread;
|
||||
mMostRecentGLThread = thread;
|
||||
}
|
||||
if (oldThread != null && ! mMultipleGLESContextsAllowed) {
|
||||
synchronized(oldThread) {
|
||||
oldThread.notifyAll();
|
||||
}
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
while ((! mMultipleGLESContextsAllowed)
|
||||
&& mGLContextCount > 0) {
|
||||
wait();
|
||||
@ -1309,12 +1316,6 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
|
||||
|
||||
mGLContextCount++;
|
||||
}
|
||||
|
||||
if (oldThread != null && ! mMultipleGLESContextsAllowed) {
|
||||
synchronized(oldThread) {
|
||||
oldThread.notifyAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void end(GLThread thread) {
|
||||
|
Reference in New Issue
Block a user