]> git.mxchange.org Git - simgear.git/commitdiff
proper typecasting
authorehofman <ehofman>
Mon, 14 Dec 2009 19:43:19 +0000 (19:43 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 14 Dec 2009 21:46:22 +0000 (22:46 +0100)
simgear/sound/soundmgr_openal.cxx

index ea5e44db0f4c69100b24ceb8a4a8ca9bb47f3f0a..05651b75964f706b1e2ce6bab031f4cdbd0dc54c 100644 (file)
@@ -158,8 +158,8 @@ void SGSoundMgr::init(const char *devname) {
         else break;
     }
 
-    string vendor = alGetString(AL_VENDOR);
-    string renderer = alGetString(AL_RENDERER);
+    string vendor = (const char *)alGetString(AL_VENDOR);
+    string renderer = (const char *)alGetString(AL_RENDERER);
     if ( vendor != "OpenAL Community" ||
          (renderer != "Software" && renderer != "OpenAL Sample Implementation")
        )