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,7 +68,8 @@ void SwapChain::release() ...@@ -68,7 +68,8 @@ void SwapChain::release()
mOffscreenTexture = NULL; mOffscreenTexture = NULL;
} }
mShareHandle = NULL; if (mWindow)
mShareHandle = NULL;
} }
static DWORD convertInterval(EGLint interval) static DWORD convertInterval(EGLint interval)
...@@ -128,7 +129,6 @@ EGLint SwapChain::reset(int backbufferWidth, int backbufferHeight, EGLint swapIn ...@@ -128,7 +129,6 @@ EGLint SwapChain::reset(int backbufferWidth, int backbufferHeight, EGLint swapIn
mDepthStencil = NULL; mDepthStencil = NULL;
} }
mShareHandle = NULL;
HANDLE *pShareHandle = NULL; HANDLE *pShareHandle = NULL;
if (!mWindow && mRenderer->getShareHandleSupport()) 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