0 is a valid filter and effect name

This commit is contained in:
Chris Robinson
2007-12-17 19:10:22 -08:00
parent be50a5f992
commit 8795932420
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect)
ProcessContext(Context);
return (*list ? AL_TRUE : AL_FALSE);
return ((*list || !effect) ? AL_TRUE : AL_FALSE);
}
AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue)
+1 -1
View File
@@ -146,7 +146,7 @@ AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter)
ProcessContext(Context);
return (*list ? AL_TRUE : AL_FALSE);
return ((*list || !filter) ? AL_TRUE : AL_FALSE);
}
AL_API ALvoid AL_APIENTRY alFilteri(ALuint filter, ALenum param, ALint iValue)