summaryrefslogtreecommitdiff
path: root/libs/hwui/Extensions.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2017-11-01 09:50:28 -0700
committer Romain Guy <romainguy@google.com> 2017-11-01 13:06:54 -0700
commit8472ac67fd1d815022874f5addace0c4334ae9f6 (patch)
tree503ec19f102ea6781fcf56ddee2166166e1a216b /libs/hwui/Extensions.cpp
parentc19d96c828d0a8d68896816055d0bad385e9b851 (diff)
Fix PixelCopyTest failure in CTS
This feature needs support for renderable float textures, but the checks were only guaranteeing support for float texture reads. Bug: 68754504 Test: CtsViewTestCases Change-Id: I0ce4a81cb8e09c10a5f1e65234685767a24ef8c4
Diffstat (limited to 'libs/hwui/Extensions.cpp')
-rw-r--r--libs/hwui/Extensions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp
index 115dcb656f66..0919e82a003b 100644
--- a/libs/hwui/Extensions.cpp
+++ b/libs/hwui/Extensions.cpp
@@ -66,6 +66,7 @@ Extensions::Extensions() {
mHas1BitStencil = extensions.has("GL_OES_stencil1");
mHas4BitStencil = extensions.has("GL_OES_stencil4");
mHasUnpackSubImage = extensions.has("GL_EXT_unpack_subimage");
+ mHasRenderableFloatTexture = extensions.has("GL_OES_texture_half_float");
mHasSRGB = mVersionMajor >= 3 || extensions.has("GL_EXT_sRGB");
mHasSRGBWriteControl = extensions.has("GL_EXT_sRGB_write_control");