Original Post
I am transferring my texture manager from GL to D3D9 and I ran into a problem using the D3DXCreateTextureFromFileEx function. I do everything correct, but the returned Texture9 interface is not valid, so I cant use it. I retrieve everything from the file, width,height, format, using the 0 value (or D3DX_DEFAULT).
What might the problem be? I am using a 24bit BMP. I will try to use jpeg too.