diff options
author | Romain Guy <romainguy@google.com> | 2011-03-02 15:14:52 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-02 15:14:52 -0800 |
commit | a91320e364140ca7d6b33115d83b75f12fba548e (patch) | |
tree | 5c54000685d77548c65d7305249832a8b3cbceae /libs | |
parent | e43111fad31ad8e36a66df52a8c6002799996413 (diff) | |
parent | 40a787f89a6f4c20f2c7fce29e5bc53954305f34 (diff) | |
download | frameworks_base-a91320e364140ca7d6b33115d83b75f12fba548e.zip frameworks_base-a91320e364140ca7d6b33115d83b75f12fba548e.tar.gz frameworks_base-a91320e364140ca7d6b33115d83b75f12fba548e.tar.bz2 |
Merge "Properly initialize FBO textures for linear filtering."
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; |