commit | 442cdc192b140f83a1959c0a68ea357227851964 | [log] [tgz] |
---|---|---|
author | daniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Fri Jan 11 04:09:49 2013 +0000 |
committer | daniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Fri Jan 11 04:09:49 2013 +0000 |
tree | 74a69d0fb078e31a040e94bceb09fa9c54faad25 | |
parent | a390e1eeeb5e990c9709ef5a4e80cd73f53f77c5 [diff] [blame] |
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;