diff options
| author | 2011-12-13 17:29:42 -0800 | |
|---|---|---|
| committer | 2011-12-13 17:29:42 -0800 | |
| commit | 8a5f8ba4f3e8352155c711adb649e6f536d194b5 (patch) | |
| tree | 2f6e85f60a439fc9569f64d0208d002a91ac7d65 /libs/hwui/LayerCache.cpp | |
| parent | b5052de75736527549d7e537632777c6fec2e4f0 (diff) | |
| parent | a1d3c91afbd52c7e8b01f4a9060c5459f02ae7a5 (diff) | |
Merge "Further reduce the number of GL commands sent to the driver"
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
| -rw-r--r-- | libs/hwui/LayerCache.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp index 324765b0aed9..d304b374850e 100644 --- a/libs/hwui/LayerCache.cpp +++ b/libs/hwui/LayerCache.cpp @@ -20,6 +20,7 @@  #include <utils/Log.h> +#include "Caches.h"  #include "Debug.h"  #include "LayerCache.h"  #include "Properties.h" @@ -140,7 +141,7 @@ bool LayerCache::resize(Layer* layer, const uint32_t width, const uint32_t heigh      uint32_t oldWidth = layer->getWidth();      uint32_t oldHeight = layer->getHeight(); -    glActiveTexture(GL_TEXTURE0); +    Caches::getInstance().activeTexture(0);      layer->bindTexture();      layer->setSize(entry.mWidth, entry.mHeight);      layer->allocateTexture(GL_RGBA, GL_UNSIGNED_BYTE);  |