Separate the setting of the DirectX texture and sampler states from the setting of OpenGL states (now in applyTextureStateState and applySamplerState).