diff --git a/engine/src/flutter/flow/texture_image.cc b/engine/src/flutter/flow/texture_image.cc index 5e3ca70bc8..71a45c642a 100644 --- a/engine/src/flutter/flow/texture_image.cc +++ b/engine/src/flutter/flow/texture_image.cc @@ -114,6 +114,9 @@ static sk_sp TextureImageCreate(GrContext* context, // Clear the binding. We are done. glBindTexture(GL_TEXTURE_2D, GL_NONE); + // Flush the texture before it can be bound by another thread. + glFlush(); + GrGLTextureInfo texInfo; texInfo.fTarget = GL_TEXTURE_2D; texInfo.fID = handle;