When calling Texture.FromFile method with a DeviceEx device, d3d is throwing an
error because the DeviceEx does not support Pool.Managed parameter.
line 351 of Texture.cpp file :
Texture^ Texture::FromFile( SlimDX::Direct3D9::Device^ device, String^ fileName
)
{
return Texture::FromFile( device, fileName, Usage::None, Pool::Managed );
}
We can resolve the situation with the full parameter method. But it is not
obvious. As a new DirectX user, I spent a lot of time to find the problem. And
to find it, I had to look inside the slimdx code. Maybe, it would be a good
idea to check the device type in the texture.cpp file and to use the right Pool
value.
The same problem exists with the FromMemory methods.
Original issue reported on code.google.com by i...@ggsoft.fr on 20 Jan 2011 at 7:44
Original issue reported on code.google.com by
i...@ggsoft.fr
on 20 Jan 2011 at 7:44