(D3D9) quit variable must be static