Fix warnings about render states being initialized in the wrong order.