Józef Kucia : wined3d: Validate render state in wined3d_device_set_render_state().