The function requires an LPDIRECT3DTEXTURE9*
. Your variable you're attempting to pass is an IDirect3DTexture9*
. They are not the same thing. According to this link
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205909(v=vs.85).aspx
An LPDIRECT3DTEXTURE9
is defined as an IDirect3DTexture9*
.
According to this link:.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb172802(v=vs.85).aspx
The last parameter is an LPDIRECT3DTEXTURE9*
, not an LPDIRECT3DTEXTURE9
. So you need to pass an IDirect3DTexture9**
, not an IDirect3DTexture9*
.
If anything, I would suspect that the last parameter in your call should be &m_pTexture
.