Browse Source

Audio: try to fix AppVeyor build.

I tried to "optimize" and broke it.
pull/121/head
Vladimír Vondruš 11 years ago
parent
commit
fd624d605e
  1. 4
      src/Magnum/Audio/Renderer.h

4
src/Magnum/Audio/Renderer.h

@ -118,7 +118,7 @@ class Renderer {
* @alc_extension{SOFT,HRTF}
*/
static bool isHrtfEnabled() {
Int enabled;
Int enabled = ALC_FALSE;
alGetIntegerv(ALC_HRTF_SOFT, &enabled);
return enabled == ALC_TRUE;
}
@ -135,7 +135,7 @@ class Renderer {
if(!Context::current()->isExtensionSupported<Extensions::ALC::SOFT::HRTF>())
return isHrtfEnabled() ? HrtfStatus::Enabled : HrtfStatus::Disabled;
Int status;
Int status = ALC_HRTF_DISABLED_SOFT;
alGetIntegerv(ALC_HRTF_STATUS_SOFT, &status);
return HrtfStatus(status);
}

Loading…
Cancel
Save