forked from enlightenment/efl
0f50ef36b9
From: Alex Wu <zhiwen.wu@linux.intel.com> When calling elm_win_alpha_set(), the global EGLContext object keep unchanged, but the new EGLSurface object subjects to the new EGLConfig with changed alpha_size. This makes eng_window_new() failed and hence free the Render_Engine object (e->engine.data.output) and nullize it. Next time other objects reference the output, segfault occurs. In this patch, I give every Evas_GL_Wl_Window object a EGLContext object and all these EGLContext objects share the same shader program objects. A new global EGLContext object "share_context" added, which is responsible for keeping the shared objects alive. e.g. shader program objects.At the first time succeeded to create a EGLContext, assign it to the "share_context", and should not destory it in eng_window_free. The "share_context" will be taken as the 3rd argument when calling eglCreateContext(), and then updated to the new created EGLContext to keep the shared gl objects available. Thanks for devilhorns' review and suggestion. SVN revision: 74328 |
||
---|---|---|
legacy |