workaround to fix screenshot leak on N4

Bug: 8322020

Change-Id: Ie60af0eb431866b8d64b2674ae7bd8b5ee05f5d6
This commit is contained in:
Mathias Agopian 2013-03-06 20:42:56 -08:00
parent 438ca07b6b
commit 2be4e8ff23
1 changed files with 3 additions and 0 deletions

View File

@ -2810,6 +2810,9 @@ status_t SurfaceFlinger::captureScreenImplLocked(
glDeleteTextures(1, &tname);
DisplayDevice::makeCurrent(mEGLDisplay,
getDefaultDisplayDevice(), mEGLContext);
return result;
}