未验证 提交 a29ab4bf 编写于 作者: J Jason Simmons 提交者: GitHub

Detach the newly created EGL context from the main thread in the embedder unit tests (#24908)

The EGL context will be used by other threads during test execution, and it
should not be active on multiple threads at the same time.  This was not
noticed previously because SwiftShader was not checking for this, but other
EGL implementations may enforce this constraint.
上级 a560c26f
......@@ -115,6 +115,7 @@ void EmbedderTestContextGL::SetupCompositor() {
<< "Set up the GL surface before setting up a compositor.";
compositor_ = std::make_unique<EmbedderTestCompositorGL>(
gl_surface_->GetSurfaceSize(), gl_surface_->GetGrContext());
GLClearCurrent();
}
} // namespace testing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册