public override void SetTextureLayerAnisotropy( int stage, int maxAnisotropy )
{
if (maxAnisotropy > _deviceManager.ActiveDevice.D3D9DeviceCaps.MaxAnisotropy)
maxAnisotropy = _deviceManager.ActiveDevice.D3D9DeviceCaps.MaxAnisotropy;
if ( ActiveD3D9Device.GetSamplerState( stage, SamplerState.MaxAnisotropy ) != maxAnisotropy )
{
SetSamplerState( stage, SamplerState.MaxAnisotropy, maxAnisotropy );
}
}