summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2012-08-31 17:14:30 -0700
committer Romain Guy <romainguy@google.com> 2012-08-31 17:17:40 -0700
commitdfe082f63e94cde9aee271c94d13de5e7217e036 (patch)
tree938584a2a121427d00521a10fe95ce0e34588a06 /libs/hwui/GradientCache.cpp
parentfbb4321b94927fd6bd39d327fe56787989b11c71 (diff)
Add more support for transformed clip rects and paths
Change-Id: I41791b1e1bffef77d503dc9e52428395d2309688
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index 2e4e3492df03..b50ed1060c96 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -57,7 +57,7 @@ GradientCache::GradientCache():
INIT_LOGD(" Using default gradient cache size of %.2fMB", DEFAULT_GRADIENT_CACHE_SIZE);
}
- glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize);
+ mMaxTextureSize = Caches::getInstance().maxTextureSize;
mCache.setOnEntryRemovedListener(this);
}