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

Commit 175264b0 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Return NO_MEMORY when glReadPixels() fails.

Change-Id: Ic66134ef457e8442ae9135e9ec50e3d02932a253
parent f082323c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;