From b2442896e3a226c7ebe9d47fa80b257e98a6a34d Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 4 Nov 2015 07:39:35 -0800 Subject: add DeviceInfo Change-Id: I4c122278a7e88b6f47c4dd3c5fc553df7d3c900d --- libs/hwui/Extensions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/Extensions.cpp') 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"); -- cgit v1.2.3-59-g8ed1b