d3d8/d3d9: Remove unconsistent tests for SetMaterial.