Return NO_MEMORY when glReadPixels() fails.
Change-Id: Ic66134ef457e8442ae9135e9ec50e3d02932a253
This commit is contained in:
parent
f082323c0d
commit
175264b09c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user