aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-17 19:10:22 -0800
committerChris Robinson <[email protected]>2007-12-17 19:10:22 -0800
commit879593242056b5ab6ec93a3dde057310907e43c7 (patch)
tree098bfceccfc0701d913420ce7bc14543ae5fc55f
parentbe50a5f992a32da16218f4c4dcf9f78e0ce847a6 (diff)
0 is a valid filter and effect name
-rw-r--r--OpenAL32/alEffect.c2
-rw-r--r--OpenAL32/alFilter.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 09c3f181..66ba710a 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -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)
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 6d57008f..c5d3ae31 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -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)