Fix share handle usage

Trac #21810 Signed-off-by: Nicolas Capens I don't think it was possible to use the sharehandle passed in, and if one was, we shouldn't clear it on release() git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1352 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 3c72078a
......@@ -68,6 +68,7 @@ void SwapChain::release()
mOffscreenTexture = NULL;
}
if (mWindow)
mShareHandle = NULL;
}
......@@ -128,7 +129,6 @@ EGLint SwapChain::reset(int backbufferWidth, int backbufferHeight, EGLint swapIn
mDepthStencil = NULL;
}
mShareHandle = NULL;
HANDLE *pShareHandle = NULL;
if (!mWindow && mRenderer->getShareHandleSupport())
{
......
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