]> git.mxchange.org Git - simgear.git/commitdiff
Also test for older versions of OpenAL-Sample
authorehofman <ehofman>
Thu, 26 Nov 2009 12:19:57 +0000 (12:19 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 26 Nov 2009 15:05:45 +0000 (16:05 +0100)
simgear/sound/soundmgr_openal.cxx

index 531298ae2342345c1e113fd952d51be3ed9c9641..010b548d6a274caca07dae45a402b6fbe18d31fe 100644 (file)
@@ -156,8 +156,10 @@ void SGSoundMgr::init() {
         else break;
     }
 
+    const char *vendor = (char *)alGetString(AL_VENDOR);
     const char *renderer = (char *)alGetString(AL_RENDERER);
-    if (  strcmp(renderer, "OpenAL Sample Implementation") ) {
+    if (  strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software")
+          || strcmp(renderer, "OpenAL Sample Implementation") ) {
        _bad_doppler = true;
     }