diff options
| author | 2011-01-14 15:35:34 -0800 | |
|---|---|---|
| committer | 2011-01-14 15:35:34 -0800 | |
| commit | 7777319712c73e1de7c2e1fe21eea87ddd5594f0 (patch) | |
| tree | e7bf880357d81a3e9913e88ce21b0cfc020fd9c6 /libs | |
| parent | 4b26d057665c662c782e3baa5d9ca8287c96ede4 (diff) | |
| parent | 1f1fcb70b6e43a6b4df0dbab75a34429d4744624 (diff) | |
Merge "Don't delete objects twice..." into honeycomb
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/hwui/DisplayListRenderer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h index 112e45596f8b..f183473fc8f5 100644 --- a/libs/hwui/DisplayListRenderer.h +++ b/libs/hwui/DisplayListRenderer.h @@ -413,10 +413,10 @@ private: SkiaShader* shaderCopy = mShaderMap.valueFor(shader); // TODO: We also need to handle generation ID changes in compose shaders - if (!shaderCopy || shaderCopy->getGenerationId() != shader->getGenerationId()) { + if (shaderCopy == NULL || shaderCopy->getGenerationId() != shader->getGenerationId()) { shaderCopy = shader->copy(); mShaderMap.add(shader, shaderCopy); - mShaders.add(shader); + mShaders.add(shaderCopy); } addInt((int) shaderCopy); |