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/TextureStorage11.cpp b/src/libGLESv2/renderer/TextureStorage11.cpp
index 52aed22..977d1aa 100644
--- a/src/libGLESv2/renderer/TextureStorage11.cpp
+++ b/src/libGLESv2/renderer/TextureStorage11.cpp
@@ -248,6 +248,7 @@
             // Create render target view -- texture should already be created with 
             // BIND_RENDER_TARGET flag.
             D3D11_RENDER_TARGET_VIEW_DESC rtvDesc;
+            rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D;
             rtvDesc.Format = format;
             rtvDesc.Texture2D.MipSlice = 0;