Merge "fix [3367893] Rotating device on YouTube's home screen several times kills system_server" into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
8bb9131c66
@@ -253,7 +253,11 @@ void Context::deinitEGL() {
|
|||||||
LOGV("%p, deinitEGL", this);
|
LOGV("%p, deinitEGL", this);
|
||||||
|
|
||||||
if (mEGL.mContext != EGL_NO_CONTEXT) {
|
if (mEGL.mContext != EGL_NO_CONTEXT) {
|
||||||
eglMakeCurrent(mEGL.mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, mEGL.mContext);
|
eglMakeCurrent(mEGL.mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
|
eglDestroySurface(mEGL.mDisplay, mEGL.mSurfaceDefault);
|
||||||
|
if (mEGL.mSurface != EGL_NO_SURFACE) {
|
||||||
|
eglDestroySurface(mEGL.mDisplay, mEGL.mSurface);
|
||||||
|
}
|
||||||
eglDestroyContext(mEGL.mDisplay, mEGL.mContext);
|
eglDestroyContext(mEGL.mDisplay, mEGL.mContext);
|
||||||
checkEglError("eglDestroyContext");
|
checkEglError("eglDestroyContext");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user