Merge "Fixed to draw texture when loadTexture() is called at first time"

This commit is contained in:
Conley Owens 2011-04-29 10:00:12 -07:00 committed by Android Code Review
commit e85e4d4ed2

View File

@ -186,7 +186,7 @@ status_t TextureManager::loadTexture(Texture* texture,
if (texture->name == -1UL) { if (texture->name == -1UL) {
status_t err = initTexture(texture); status_t err = initTexture(texture);
LOGE_IF(err, "loadTexture failed in initTexture (%s)", strerror(err)); LOGE_IF(err, "loadTexture failed in initTexture (%s)", strerror(err));
return err; if (err != NO_ERROR) return err;
} }
if (texture->target != Texture::TEXTURE_2D) if (texture->target != Texture::TEXTURE_2D)