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 | dcab18c9c1a4ac6b5b9c996a4b002b0468bb3269 (patch) | |
tree | 6652dadd645b3214fdcd3d648f24b63ace0e7571 /services/surfaceflinger | |
parent | 0686717d7968719a85bfbf841052066a3a182e65 (diff) | |
download | frameworks_native-dcab18c9c1a4ac6b5b9c996a4b002b0468bb3269.zip frameworks_native-dcab18c9c1a4ac6b5b9c996a4b002b0468bb3269.tar.gz frameworks_native-dcab18c9c1a4ac6b5b9c996a4b002b0468bb3269.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
Diffstat (limited to 'services/surfaceflinger')
-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) |