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
parent 03d39094
......@@ -249,10 +249,8 @@ Context::~Context()
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)
......
......@@ -282,7 +282,7 @@ class Context
~Context();
void makeCurrent(egl::Display *display, egl::Surface *surface);
void makeCurrent(egl::Surface *surface);
virtual void markAllStateDirty();
void markDxUniformsDirty();
......
......@@ -83,7 +83,7 @@ void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface)
if (context && display && surface)
{
context->makeCurrent(display, surface);
context->makeCurrent(surface);
}
}
......
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