I'm trying to create a texture from file (but without
using D3DXCreateTextureFromFileEx) that has a non-power-2
texture size (665x1000x24).
I'm attempting to create a blank texture (via
CreateTexture) and fill in the texture bits. For example:
g_pd3dDevice->CreateTexture( 665, 1000, 0, 0 ,
D3DFMT_A8R8G8B8, D3DPOOL_MANAGED , &g_pTexture )
However, this function ALWAYS fails. Of course,
D3DXCreateTextureFromFileEx works fine on the texture file
(which is a jpeg no less).