* commit '5062011324199293942613b0af96c88a650fcc31': Return NO_MEMORY when glReadPixels() fails.
This commit is contained in:
commit
96e383cb10
@ -2815,6 +2815,8 @@ status_t SurfaceFlinger::captureScreenImplLocked(
|
|||||||
*h = sh;
|
*h = sh;
|
||||||
*f = PIXEL_FORMAT_RGBA_8888;
|
*f = PIXEL_FORMAT_RGBA_8888;
|
||||||
result = NO_ERROR;
|
result = NO_ERROR;
|
||||||
|
} else {
|
||||||
|
result = NO_MEMORY;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = NO_MEMORY;
|
result = NO_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user