diff options
Diffstat (limited to 'libs/hwui/LayerRenderer.cpp')
| -rw-r--r-- | libs/hwui/LayerRenderer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp index 3583b8658254..a15165d6fd21 100644 --- a/libs/hwui/LayerRenderer.cpp +++ b/libs/hwui/LayerRenderer.cpp @@ -99,8 +99,7 @@ void LayerRenderer::resizeLayer(GLuint fbo, GLuint texture, uint32_t width, uint if (glGetError() != GL_NO_ERROR) { glDeleteBuffers(1, &fbo); - glDeleteTextures(1, texture); - glBindFramebuffer(GL_FRAMEBUFFER, previousFbo); + glDeleteTextures(1, &texture); *layerWidth = 0; *layerHeight = 0; |