Initialize uninitialized pointers in SwapChain11 to NULL.

This could cause invalid calls in the destructor in debug builds. TRAC #22393 Signed-off-by: Geoff Lang Signed-off-by: Daniel Koch Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1712 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 3d90e602
...@@ -47,6 +47,11 @@ SwapChain11::SwapChain11(Renderer11 *renderer, HWND window, HANDLE shareHandle, ...@@ -47,6 +47,11 @@ SwapChain11::SwapChain11(Renderer11 *renderer, HWND window, HANDLE shareHandle,
mOffscreenSRView = NULL; mOffscreenSRView = NULL;
mDepthStencilTexture = NULL; mDepthStencilTexture = NULL;
mDepthStencilDSView = NULL; mDepthStencilDSView = NULL;
mQuadVB = NULL;
mPassThroughSampler = NULL;
mPassThroughIL = NULL;
mPassThroughVS = NULL;
mPassThroughPS = NULL;
mWidth = -1; mWidth = -1;
mHeight = -1; mHeight = -1;
} }
......
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