commit | 175264b09c6080b29a23fc9f545d4b99445714bd | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Mar 05 17:57:26 2013 -0800 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Mar 05 18:00:01 2013 -0800 |
tree | c0a99634cf7348cbc9997d9ef90104523c8813d5 | |
parent | f082323c0dbd915d2ad7b6f4d9c732e230fcda46 [diff] [blame] |
Return NO_MEMORY when glReadPixels() fails. Change-Id: Ic66134ef457e8442ae9135e9ec50e3d02932a253
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 8fa0800..a0d2827 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2815,6 +2815,8 @@ *h = sh; *f = PIXEL_FORMAT_RGBA_8888; result = NO_ERROR; + } else { + result = NO_MEMORY; } } else { result = NO_MEMORY;