Original Post
I've been playing around with mipmapping in Directx9 and get some strange errors. When I call to turn mipmapping off ... I get these Direct3D errors - Direct3D9: (ERROR) :Unsupported mag filter. Direct3D9: (ERROR) :Invalid texture sampler state value. SetSamplerState failed. First-chance exception at 0x7c81eb33 in mipmapping.exe: Microsoft C++ exception: long @ 0x0012fa70. Direct3D9: (ERROR) :SetSamplerState failed. I get the same error messages when I call to turn anisotropic mipmapping on I have lots of other similar SetSamplerState calls in my program but these are the only ones that produce errors. Could someone explain what these errors mean and how I might fix them? Cheers
g_pD3DDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_NONE);
g_pD3DDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_NONE);
g_pD3DDevice->SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_ANISOTROPIC);