diff options
author | Yahan Zhou <yahan@google.com> | 2017-05-01 14:44:15 -0700 |
---|---|---|
committer | Yahan Zhou <yahan@google.com> | 2017-05-01 14:44:49 -0700 |
commit | 03cb62c9c6ca2a909d7c82fbaf178d9f5005eb6b (patch) | |
tree | bda02a7112ecb87b097007d7844516986e685e8b | |
parent | 41f2f03087436402e8f9451b55ab0807f93b3412 (diff) | |
download | goldfish-opengl-03cb62c9c6ca2a909d7c82fbaf178d9f5005eb6b.tar.gz |
Fix jb-mr2 build
Test: buildbot stops complaining
Change-Id: I84de2fe6475308887b39aef4db4a8e965c732a34
-rw-r--r-- | system/gralloc/gralloc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp index 0c5a6137..2b9dcc5e 100644 --- a/system/gralloc/gralloc.cpp +++ b/system/gralloc/gralloc.cpp @@ -478,6 +478,7 @@ static int gralloc_alloc(alloc_device_t* dev, glFormat = GL_RGB; glType = GL_UNSIGNED_SHORT_5_6_5; break; +#if PLATFORM_SDK_VERSION >= 26 case HAL_PIXEL_FORMAT_RGBA_FP16: bpp = 16; glFormat = GL_RGBA16F; @@ -488,6 +489,7 @@ static int gralloc_alloc(alloc_device_t* dev, glFormat = GL_RGBA; glType = GL_UNSIGNED_INT_10_10_10_2; break; +#endif // PLATFORM_SDK_VERSION >= 26 #if PLATFORM_SDK_VERSION >= 21 case HAL_PIXEL_FORMAT_RAW16: case HAL_PIXEL_FORMAT_Y16: |