Eliminate the getCurrentContext() dependency.

BUG=18110152

Change-Id: Ic1e502cdd1392c16d6f53a139f57bc224b338cc4
Reviewed-on: https://swiftshader-review.googlesource.com/1241
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/GLES2/libEGL/main.h b/src/GLES2/libEGL/main.h
index 8b1052b..6f67abd 100644
--- a/src/GLES2/libEGL/main.h
+++ b/src/GLES2/libEGL/main.h
@@ -25,6 +25,7 @@
 		EGLint error;
 		EGLenum API;
 		EGLDisplay display;
+		EGLContext context;
 		EGLSurface drawSurface;
 		EGLSurface readSurface;
 	};
@@ -38,6 +39,9 @@
 	void setCurrentDisplay(EGLDisplay dpy);
 	EGLDisplay getCurrentDisplay();
 
+	void setCurrentContext(EGLContext ctx);
+	EGLContext getCurrentContext();
+
 	void setCurrentDrawSurface(EGLSurface surface);
 	EGLSurface getCurrentDrawSurface();
 
@@ -86,7 +90,6 @@
 	extern Context *(*createContext)(const egl::Config *config, const Context *shareContext);
 	extern void (*bindTexImage)(egl::Surface *surface);
 	extern void (*makeCurrent)(Context *context, egl::Display *display, egl::Surface *surface);
-	extern Context *(*getCurrentContext)();
 	extern __eglMustCastToProperFunctionPointerType (*getProcAddress)(const char *procname);
 	extern Image *(*createBackBuffer)(int width, int height, const egl::Config *config);
 	extern sw::FrameBuffer *(*createFrameBuffer)(EGLNativeDisplayType display, EGLNativeWindowType window, int width, int height);