diff options
author | Chris Robinson <[email protected]> | 2017-08-21 00:27:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-21 00:27:52 -0700 |
commit | e7c4681e9a57c60b6432b515681df6c0d153d1da (patch) | |
tree | d0813083e83d4a0586d934adc2686c32bd8424cd /OpenAL32 | |
parent | 877ecda14d3b891405e4f803139b686900fd76c4 (diff) |
0 meters per unit is invalid
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alListener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alListener.c b/OpenAL32/alListener.c index d117c0ca..5a12673d 100644 --- a/OpenAL32/alListener.c +++ b/OpenAL32/alListener.c @@ -43,7 +43,7 @@ AL_API ALvoid AL_APIENTRY alListenerf(ALenum param, ALfloat value) break; case AL_METERS_PER_UNIT: - if(!(value >= 0.0f && isfinite(value))) + if(!(value >= AL_MIN_METERS_PER_UNIT && value <= AL_MAX_METERS_PER_UNIT)) SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); context->Listener->MetersPerUnit = value; break; |