Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50620113 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 175264b0: Return NO_MEMORY when glReadPixels() fails.

* commit '175264b0':
  Return NO_MEMORY when glReadPixels() fails.
parents 501ca36a 175264b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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;