提交 61c99274 编写于 作者: M mingzhu_pearl

create EGLSurface

Signed-off-by: Nmingzhu_pearl <limingzhu10@huawei.com>
Change-Id: Idf711ec886b9cbccf688cc4062b64e409baf580d
上级 b90d9c0d
此差异已折叠。
......@@ -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.
先完成此消息的编辑!
想要评论请 注册