a slightly more readable version of the test
This commit is contained in:
@@ -156,10 +156,12 @@ void SGSoundMgr::init() {
|
||||
else break;
|
||||
}
|
||||
|
||||
const char *vendor = (char *)alGetString(AL_VENDOR);
|
||||
const char *renderer = (char *)alGetString(AL_RENDERER);
|
||||
if ( strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software")
|
||||
|| strcmp(renderer, "OpenAL Sample Implementation") ) {
|
||||
string vendor = alGetString(AL_VENDOR);
|
||||
string renderer = alGetString(AL_RENDERER);
|
||||
if ( vendor != "OpenAL Community" ||
|
||||
(renderer != "Software" && renderer != "OpenAL Sample Implementation")
|
||||
)
|
||||
{
|
||||
_bad_doppler = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user