Return NO_MEMORY when glReadPixels() fails.

Change-Id: Ic66134ef457e8442ae9135e9ec50e3d02932a253
This commit is contained in:
Jeff Sharkey 2013-03-05 17:57:26 -08:00
parent f082323c0d
commit 175264b09c

View File

@ -2815,6 +2815,8 @@ status_t SurfaceFlinger::captureScreenImplLocked(
*h = sh;
*f = PIXEL_FORMAT_RGBA_8888;
result = NO_ERROR;
} else {
result = NO_MEMORY;
}
} else {
result = NO_MEMORY;