Commit a8bb28ca by Jorge E. Moreira Committed by Nicolas Capens

Use the correct constant name for the Android SDK version

Bug b/78194651 Change-Id: Iafe8728a3593b0bd48b9633261df4035d2e94117 Reviewed-on: https://swiftshader-review.googlesource.com/18668Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent bf58b989
...@@ -247,7 +247,7 @@ inline GLenum GLPixelFormatFromAndroid(int halFormat) ...@@ -247,7 +247,7 @@ inline GLenum GLPixelFormatFromAndroid(int halFormat)
#ifdef GRALLOC_MODULE_API_VERSION_0_2 #ifdef GRALLOC_MODULE_API_VERSION_0_2
case HAL_PIXEL_FORMAT_YCbCr_420_888: return SW_YV12_BT601; case HAL_PIXEL_FORMAT_YCbCr_420_888: return SW_YV12_BT601;
#endif #endif
#if PLATFORM_SDK_VERSION >= 26 #if ANDROID_PLATFORM_SDK_VERSION >= 26
case HAL_PIXEL_FORMAT_RGBA_FP16: return GL_RGBA16F; case HAL_PIXEL_FORMAT_RGBA_FP16: return GL_RGBA16F;
#endif #endif
case HAL_PIXEL_FORMAT_RGB_888: // Unsupported. case HAL_PIXEL_FORMAT_RGB_888: // Unsupported.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment