Passes the swapchain to texture storage constructor instead of d3d texture.

TRAC #21910

Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1370 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp
index e079cb2..1bdc109 100644
--- a/src/libGLESv2/Texture.cpp
+++ b/src/libGLESv2/Texture.cpp
@@ -666,7 +666,7 @@
 
     delete mTexStorage;
     renderer::SwapChain *swapchain = surface->getSwapChain();  // D3D9_REPLACE
-    mTexStorage = new TextureStorage2D(swapchain->getOffscreenTexture());
+    mTexStorage = new TextureStorage2D(swapchain);
 
     mDirtyImages = true;
     mSurface = surface;