Skip to content

Commit a47c0d2

Browse files
cco3Android Git Automerger
authored andcommitted
am 58e4a5e: Merge "Fixed to draw texture when loadTexture() is called at first time"
* commit '58e4a5e2094c5003225fc715ee1a53b2461e71b1': Fixed to draw texture when loadTexture() is called at first time
2 parents 520dd92 + 58e4a5e commit a47c0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/surfaceflinger/TextureManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ status_t TextureManager::loadTexture(Texture* texture,
186186
if (texture->name == -1UL) {
187187
status_t err = initTexture(texture);
188188
LOGE_IF(err, "loadTexture failed in initTexture (%s)", strerror(err));
189-
return err;
189+
if (err != NO_ERROR) return err;
190190
}
191191

192192
if (texture->target != Texture::TEXTURE_2D)

0 commit comments

Comments
 (0)