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
This commit is contained in:
parent
0686717d79
commit
dcab18c9c1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user