diff options
| author | 2013-06-19 12:17:01 -0700 | |
|---|---|---|
| committer | 2013-06-19 12:17:01 -0700 | |
| commit | 2458939b5f926176a485a3196f59688eed78e858 (patch) | |
| tree | fc608a8ae818144c69f679e059adb1fa198e01aa /libs/hwui/OpenGLRenderer.cpp | |
| parent | 31e08e953fe7bdb1b1cbc247156cb6a19917a2f1 (diff) | |
Fix regression: TextureView.setAlpha() was ignored
Change-Id: I9f43eec0fe23a65dcc1cf9cd0ac1f5e8907786a7
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 0daf9c7da111..6e8e126dd59c 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1061,7 +1061,7 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) { } void OpenGLRenderer::drawTextureLayer(Layer* layer, const Rect& rect) { - float alpha = layer->getAlpha() / 255.0f * mSnapshot->alpha; + float alpha = getLayerAlpha(layer); setupDraw(); if (layer->getRenderTarget() == GL_TEXTURE_2D) { |