diff options
author | Romain Guy <romainguy@google.com> | 2011-03-02 15:15:42 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-03-02 15:15:42 -0800 |
commit | 40a787f89a6f4c20f2c7fce29e5bc53954305f34 (patch) | |
tree | 35f7fe50165268be3a05768cbb72aab4e7a8a9a4 /libs | |
parent | ffe2c7a071911b6a24954d41bbaeecd367286ba8 (diff) | |
download | frameworks_base-40a787f89a6f4c20f2c7fce29e5bc53954305f34.zip frameworks_base-40a787f89a6f4c20f2c7fce29e5bc53954305f34.tar.gz frameworks_base-40a787f89a6f4c20f2c7fce29e5bc53954305f34.tar.bz2 |
Properly initialize FBO textures for linear filtering.
Change-Id: I67fc4fd760483ef85809be8d6e608cf4f469650f
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/LayerRenderer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp index 24f9739..b1eb164 100644 --- a/libs/hwui/LayerRenderer.cpp +++ b/libs/hwui/LayerRenderer.cpp @@ -214,6 +214,11 @@ Layer* LayerRenderer::createLayer(uint32_t width, uint32_t height, bool isOpaque glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, layer->texture, 0); + glDisable(GL_SCISSOR_TEST); + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); + glClear(GL_COLOR_BUFFER_BIT); + glEnable(GL_SCISSOR_TEST); + glBindFramebuffer(GL_FRAMEBUFFER, previousFbo); return layer; |