pandap / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Texture, DeviceEx and Pool.Managed #771

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1889.

Original comment by Mike.Popoloski on 21 Jan 2011 at 9:35