Skip to content

Commit 58e4a5e

Browse files
cco3Android Code Review
authored andcommitted
Merge "Fixed to draw texture when loadTexture() is called at first time"
2 parents 9355a24 + 222c221 commit 58e4a5e

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)