Fixed DX11 warnings when exiting from menu