Commit 8b8efafc authored by hybrid's avatar hybrid

Change of the return value for getDX9Texture, necessary for other types of...

Change of the return value for getDX9Texture, necessary for other types of textures. Requested by MasterD.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1668 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 10021133
...@@ -2287,7 +2287,7 @@ bool CD3D9Driver::reset() ...@@ -2287,7 +2287,7 @@ bool CD3D9Driver::reset()
{ {
if (Textures[i].Surface->isRenderTarget()) if (Textures[i].Surface->isRenderTarget())
{ {
IDirect3DTexture9* tex = ((CD3D9Texture*)(Textures[i].Surface))->getDX9Texture(); IDirect3DBaseTexture9* tex = ((CD3D9Texture*)(Textures[i].Surface))->getDX9Texture();
if (tex) if (tex)
tex->Release(); tex->Release();
} }
......
...@@ -563,7 +563,7 @@ u32 CD3D9Texture::getPitch() const ...@@ -563,7 +563,7 @@ u32 CD3D9Texture::getPitch() const
//! returns the DIRECT3D9 Texture //! returns the DIRECT3D9 Texture
IDirect3DTexture9* CD3D9Texture::getDX9Texture() const IDirect3DBaseTexture9* CD3D9Texture::getDX9Texture() const
{ {
return Texture; return Texture;
} }
......
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
virtual u32 getPitch() const; virtual u32 getPitch() const;
//! returns the DIRECT3D9 Texture //! returns the DIRECT3D9 Texture
IDirect3DTexture9* getDX9Texture() const; IDirect3DBaseTexture9* getDX9Texture() const;
//! returns if texture has mipmap levels //! returns if texture has mipmap levels
bool hasMipMaps() const; bool hasMipMaps() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment