David Adam : ddraw: Only ddraw checks wether one can give a null pointer to SetMaterial.