EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, EGLint const * attrib_list);
If share_context is not EGL_NO_CONTEXT, then all shareable data in the context (as defined by the client API specification for the current rendering API) are shared by context share_context, all other contexts share_context already shares with, and the newly created context. An arbitrary number of rendering contexts can share data. However, all rendering contexts that share data must themselves exist in the same address space. Two rendering contexts share an address space if both are owned by a single process.
本文介绍了EGLContext的创建过程及共享上下文的概念。当指定一个存在的上下文作为share_context参数时,新创建的上下文将与之共享数据,且所有共享数据的上下文必须存在于同一地址空间内。

被折叠的 条评论
为什么被折叠?



