Eliminates usage of Display from Context::makeCurrent.

TRAC #22000

Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1403 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 3e7f6cf..5479076 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -249,10 +249,8 @@
     mResourceManager->release();
 }
 
-void Context::makeCurrent(egl::Display *display, egl::Surface *surface)
+void Context::makeCurrent(egl::Surface *surface)
 {
-    mDisplay = display;
-    mRenderer = mDisplay->getRenderer9();
     mDevice = mRenderer->getDevice(); // D3D9_REMOVE
 
     if (!mHasBeenCurrent)
diff --git a/src/libGLESv2/Context.h b/src/libGLESv2/Context.h
index 19cbd44..f47c8a0 100644
--- a/src/libGLESv2/Context.h
+++ b/src/libGLESv2/Context.h
@@ -282,7 +282,7 @@
 
     ~Context();
 
-    void makeCurrent(egl::Display *display, egl::Surface *surface);
+    void makeCurrent(egl::Surface *surface);
 
     virtual void markAllStateDirty();
     void markDxUniformsDirty();
diff --git a/src/libGLESv2/main.cpp b/src/libGLESv2/main.cpp
index fbccd87..0a69d41 100644
--- a/src/libGLESv2/main.cpp
+++ b/src/libGLESv2/main.cpp
@@ -83,7 +83,7 @@
 
     if (context && display && surface)
     {
-        context->makeCurrent(display, surface);
+        context->makeCurrent(surface);
     }
 }