Fixes bugs in rendering to textures.

TRAC #22365

Author: Shannon Woods
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1683 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/RenderTarget11.cpp b/src/libGLESv2/renderer/RenderTarget11.cpp
index a88afde..c84a0b9 100644
--- a/src/libGLESv2/renderer/RenderTarget11.cpp
+++ b/src/libGLESv2/renderer/RenderTarget11.cpp
@@ -102,6 +102,7 @@
                 dsvDesc.Format = requestedFormat;
                 dsvDesc.ViewDimension = D3D11_DSV_DIMENSION_TEXTURE2D;
                 dsvDesc.Texture2D.MipSlice = 0;
+                dsvDesc.Flags = 0;
                 result = device->CreateDepthStencilView(rtTexture, &dsvDesc, &mDepthStencil);
             }
             else