diff options
author | Chris Robinson <[email protected]> | 2011-07-21 16:18:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-21 16:18:21 -0700 |
commit | d5ddc6acee1e3092ecda49b09be997916db5a988 (patch) | |
tree | 3b2e1a98c2053298a62ccb2d5484f0f872c35f13 /OpenAL32 | |
parent | 30750d8763c76e06b2e802b7d53aeacb2e5ca6d4 (diff) |
Make sure some state values are finite
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alState.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 3c1ab9b8..0e0e5d4b 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -496,7 +496,7 @@ AL_API ALvoid AL_APIENTRY alDopplerFactor(ALfloat value) Context = GetLockedContext(); if(!Context) return; - if(value >= 0.0f) + if(value >= 0.0f && isfinite(value)) { Context->DopplerFactor = value; Context->UpdateSources = AL_TRUE; @@ -514,7 +514,7 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value) Context = GetLockedContext(); if(!Context) return; - if(value > 0.0f) + if(value > 0.0f && isfinite(value)) { Context->DopplerVelocity=value; Context->UpdateSources = AL_TRUE; @@ -532,7 +532,7 @@ AL_API ALvoid AL_APIENTRY alSpeedOfSound(ALfloat flSpeedOfSound) pContext = GetLockedContext(); if(!pContext) return; - if(flSpeedOfSound > 0.0f) + if(flSpeedOfSound > 0.0f && isfinite(flSpeedOfSound)) { pContext->flSpeedOfSound = flSpeedOfSound; pContext->UpdateSources = AL_TRUE; |