If i try to create a device with these settings :
DeviceSettings ds = new DeviceSettings();
ds.BackBufferWidth = InitialWidth;
ds.BackBufferHeight = InitialHeight;
ds.BackBufferCount = 1;
ds.BackBufferFormat = SlimDX.Direct3D9.Format.D24S8;
ds.DepthStencilFormat = SlimDX.Direct3D9.Format.D24S8;
ds.DeviceType = SlimDX.Direct3D9.DeviceType.Hardware;
ds.DeviceVersion = DeviceVersion.Direct3D10;
ds.EnableVSync = true;
ds.MultisampleType = SlimDX.Direct3D9.MultisampleType.None;
ds.Multithreaded = false;
ds.RefreshRate = 60;
ds.Windowed = true;
GraphicsDeviceManager.ChangeDevice(ds);
It does not create the depth stencil. I debugged it and it seems that the
DepthStencilFormat is forgotten somewhere. It is Unknown at the creation
of the depthstencil.
I hardcoded a solution ATM, but any help to resolve this issue would be
appreciated. :D
Original issue reported on code.google.com by feal87@gmail.com on 20 Mar 2009 at 4:11
Original issue reported on code.google.com by
feal87@gmail.com
on 20 Mar 2009 at 4:11