diff options
author | Ichitaro Kohara <ichitaro.kohara@sonyericsson.com> | 2011-02-18 13:15:04 +0100 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonyericsson.com> | 2011-04-05 08:58:44 +0200 |
commit | 222c221a1a0a848a1376b348cdfc8e28806857d7 (patch) | |
tree | f5b4ff4d223a747d29538793ecfa15c2e6384761 | |
parent | c6b22e2727bd3730edd5ad72831a9bb4670d00f3 (diff) | |
download | frameworks_base-222c221a1a0a848a1376b348cdfc8e28806857d7.zip frameworks_base-222c221a1a0a848a1376b348cdfc8e28806857d7.tar.gz frameworks_base-222c221a1a0a848a1376b348cdfc8e28806857d7.tar.bz2 |
Fixed to draw texture when loadTexture() is called at first time
SW renderer of Stagefright reaches loadTexture() to draw image.
The first time loadTexture() is called, it just initializes OGL
texture, then returns. Thus, the first time call doesn't draw.
This patch fixes to move on to draw stage after the initialization.
Change-Id: I3ec1ad68fb8d376a4ad7aefded1c18a002d175c4
-rw-r--r-- | services/surfaceflinger/TextureManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/TextureManager.cpp b/services/surfaceflinger/TextureManager.cpp index c9a15f5..9e24f90 100644 --- a/services/surfaceflinger/TextureManager.cpp +++ b/services/surfaceflinger/TextureManager.cpp @@ -186,7 +186,7 @@ status_t TextureManager::loadTexture(Texture* texture, if (texture->name == -1UL) { status_t err = initTexture(texture); LOGE_IF(err, "loadTexture failed in initTexture (%s)", strerror(err)); - return err; + if (err != NO_ERROR) return err; } if (texture->target != Texture::TEXTURE_2D) |