Correctly share context in EGL replay mode

In case of EGL the replay context was not shared with
the newly created context thus the replay was unable
to display the resulting image.
This commit is contained in:
Peter Gal authored and Baldur Karlsson committed 2017-02-22 22:27:14 +00:00
1 parent 8ff3ee93b5
commit a1c2eee0dd
1 file changed
+1 -1
+1 -1
View File
@@ -253,7 +253,7 @@ public:
static const EGLint ctxAttribs[] = {EGL_CONTEXT_CLIENT_VERSION, 3, EGL_CONTEXT_FLAGS_KHR,
EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR, EGL_NONE};
EGLContext ctx = eglCreateContext_real(eglDisplay, config, EGL_NO_CONTEXT, ctxAttribs);
EGLContext ctx = eglCreateContext_real(eglDisplay, config, share_context.ctx, ctxAttribs);
if(ctx == NULL)
{