Separate config init from library init
commit62036745f330ac1a9bbca52e8bf87d4549b5b31d
authorChris Robinson <chris.kcat@gmail.com>
Tue, 14 Jun 2011 16:43:33 +0000 (14 09:43 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Tue, 14 Jun 2011 16:43:33 +0000 (14 09:43 -0700)
tree304b6a162ac7ef2025304b48cb45e1d3857c260e
parent264274685ad01c861e02c7687baef737e18fa716
Separate config init from library init

OSX has a bug where the file descriptor resource limit can't be increased once
certain functions (such as fopen) are used. Since lib initialization happens in
a global constructor and includes opening and parsing config files, it prevents
apps from being able to increase the rlimit once the lib is loaded, which is
usually before main().

By delaying config init, it allows apps the opportunity to change the rlimit
before calling certain OpenAL functions.
Alc/ALc.c