Commit 819cfb86 by Nicolas Capens Committed by Nicolas Capens

Fix setting the EGL context.

BUG=18121988 Change-Id: If0072d742a8d3d0bd872d9d60f9e68ad7eda4d1a Reviewed-on: https://swiftshader-review.googlesource.com/1251Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent c2df1257
......@@ -871,6 +871,7 @@ EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurfac
egl::setCurrentDisplay(dpy);
egl::setCurrentDrawSurface(draw);
egl::setCurrentReadSurface(read);
egl::setCurrentContext(ctx);
gl::makeCurrent(context, display, static_cast<egl::Surface*>(draw));
......
......@@ -42,6 +42,7 @@ static void eglAttachThread()
current->display = EGL_NO_DISPLAY;
current->drawSurface = EGL_NO_SURFACE;
current->readSurface = EGL_NO_SURFACE;
current->context = EGL_NO_CONTEXT;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment