From a1c2eee0ddbcb961f65390a48f2a32b141071d9d Mon Sep 17 00:00:00 2001 From: Peter Gal Date: Wed, 22 Feb 2017 20:27:36 +0100 Subject: [PATCH] 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. --- renderdoc/driver/gl/gl_hooks_egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/gl_hooks_egl.cpp b/renderdoc/driver/gl/gl_hooks_egl.cpp index 6d7be206b..3475907d9 100644 --- a/renderdoc/driver/gl/gl_hooks_egl.cpp +++ b/renderdoc/driver/gl/gl_hooks_egl.cpp @@ -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) {