未验证 提交 74aadf6e 编写于 作者: O openharmony_ci 提交者: Gitee

!8003 create EGLSurface

Merge pull request !8003 from MingZhu/lmz_remote
此差异已折叠。
......@@ -159,7 +159,10 @@ void NativeImageTest::InitEglContext()
return;
}
eglMakeCurrent(eglDisplay_, EGL_NO_SURFACE, EGL_NO_SURFACE, eglContext_);
EGLint attribs[] = {EGL_WIDTH, 1, EGL_HEIGHT, 1, EGL_NONE};
EGLSurface pbufferSurface_ = eglCreatePbufferSurface(eglDisplay_, config_, attribs);
eglMakeCurrent(eglDisplay_, pbufferSurface_, pbufferSurface_, eglContext_);
BLOGW("Create EGL context successfully, version %{public}d.%{public}d", major, minor);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册