summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-04-29 10:00:12 -0700
committerAndroid Code Review <code-review@android.com>2011-04-29 10:00:12 -0700
commit58e4a5e2094c5003225fc715ee1a53b2461e71b1 (patch)
tree9aeccabda8af738ff0dda7489e5b62e938c7f016
parent9355a24af2a4985902f1e9ab4233df3fb831ef72 (diff)
parent222c221a1a0a848a1376b348cdfc8e28806857d7 (diff)
downloadframeworks_base-58e4a5e2094c5003225fc715ee1a53b2461e71b1.zip
frameworks_base-58e4a5e2094c5003225fc715ee1a53b2461e71b1.tar.gz
frameworks_base-58e4a5e2094c5003225fc715ee1a53b2461e71b1.tar.bz2
Merge "Fixed to draw texture when loadTexture() is called at first time"
-rw-r--r--services/surfaceflinger/TextureManager.cpp2
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)