diff options
author | 2015-11-05 09:22:17 -0800 | |
---|---|---|
committer | 2015-11-05 10:13:23 -0800 | |
commit | 704bed0da7cc75d0c517d425445de70ceb58060b (patch) | |
tree | 00c151f39181e0503afd7e1e301ce4698d7a45f5 /libs/hwui/Extensions.cpp | |
parent | 3b2872a87159e6ba1a4212465a395ffbcbfccc74 (diff) |
add DeviceInfo
This reverts commit 096895550b9d5430d7a001d491566decf4f9791b.
Change-Id: Ib2ed1e96d8f7f88302f5e27fe735687194553104
Diffstat (limited to 'libs/hwui/Extensions.cpp')
-rw-r--r-- | libs/hwui/Extensions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp index 6dd29ad8c703..e257715acaeb 100644 --- a/libs/hwui/Extensions.cpp +++ b/libs/hwui/Extensions.cpp @@ -35,8 +35,8 @@ namespace uirenderer { #endif -Extensions::Extensions() { - StringCollection extensions((const char*) glGetString(GL_EXTENSIONS)); +void Extensions::load() { + auto extensions = StringUtils::split((const char*) glGetString(GL_EXTENSIONS)); mHasNPot = extensions.has("GL_OES_texture_npot"); mHasFramebufferFetch = extensions.has("GL_NV_shader_framebuffer_fetch"); mHasDiscardFramebuffer = extensions.has("GL_EXT_discard_framebuffer"); |