提交 adbf0371 编写于 作者: J Jason Simmons 提交者: GitHub

Flush image textures before they are bound by the UI thread (#2873)

上级 d3a7a6d7
......@@ -114,6 +114,9 @@ static sk_sp<SkImage> 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册