The state law cannot override the First Amendment which includes freedom of association
Of course, in some areas they are more strict, especially in public accommodation, and some areas not all, like marriage or renting rooms in your house.
My problem is I don't see a difference in the constitutional basis for permitting or prohibiting a state from overriding the right to refuse to associate because of race as distinguished from homosexuality.