Eliminates getD3DTexture, instead returning the texture storage object.

TRAC #21910

Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1372 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp
index e0712af..555590b 100644
--- a/src/libGLESv2/Texture.cpp
+++ b/src/libGLESv2/Texture.cpp
@@ -438,18 +438,17 @@
     return true;
 }
 
-// D3D9_REPLACE
-IDirect3DBaseTexture9 *Texture::getD3DTexture()
+TextureStorage *Texture::getNativeTexture()
 {
     // ensure the underlying texture is created
-    if (getStorage(false) == NULL)
+
+    TextureStorage *storage = getStorage(false);
+    if (storage)
     {
-        return NULL;
+        updateTexture();
     }
 
-    updateTexture();
-
-    return getBaseTexture();
+    return storage;
 }
 
 bool Texture::hasDirtyParameters() const