commit | 820987d6c37cb0517a4bdde481494f480e0e6abb | [log] [tgz] |
---|---|---|
author | Yahan Zhou <yahan@google.com> | Tue May 02 11:04:52 2017 -0700 |
committer | Yahan Zhou <yahan@google.com> | Tue May 02 11:04:52 2017 -0700 |
tree | 75e263bf78736ecf1bca23beea91d8f9674ea5b8 | |
parent | 03cb62c9c6ca2a909d7c82fbaf178d9f5005eb6b [diff] |
Fix byte-per-pixel for floating point color buffer Change-Id: I0c881831bd64eadca07123d7f3fd93d87e5c0f5a
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp index 2b9dcc5..b687c74 100644 --- a/system/gralloc/gralloc.cpp +++ b/system/gralloc/gralloc.cpp
@@ -480,7 +480,7 @@ break; #if PLATFORM_SDK_VERSION >= 26 case HAL_PIXEL_FORMAT_RGBA_FP16: - bpp = 16; + bpp = 8; glFormat = GL_RGBA16F; glType = GL_HALF_FLOAT; break;