diff options
author | 2013-06-13 14:29:40 -0700 | |
---|---|---|
committer | 2013-06-13 14:58:32 -0700 | |
commit | 7f4307668b10467ee39d41c7ea29cf1ff238a835 (patch) | |
tree | 83fdf6fec84c510d33d62c6348e86b821cd996ea /libs/hwui/GradientCache.cpp | |
parent | 405436021da156fbe3c5d4de48bdefa564cf7fc0 (diff) |
Add new Query class for debugging
This class can be used to perform occlusion queries. An occlusion query
can be used to test whether an object is entirely hidden or not.
Change-Id: Ida456df81dbe008a64d3ff4cb7879340785c6abf
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r-- | libs/hwui/GradientCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp index 1815bffcc3fb..09169420a6d9 100644 --- a/libs/hwui/GradientCache.cpp +++ b/libs/hwui/GradientCache.cpp @@ -78,7 +78,7 @@ GradientCache::GradientCache(): mCache.setOnEntryRemovedListener(this); const Extensions& extensions = Extensions::getInstance(); - mUseFloatTexture = extensions.getMajorGlVersion() >= 3; + mUseFloatTexture = extensions.hasFloatTextures(); mHasNpot = extensions.hasNPot(); } |