0 is a valid filter and effect name
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user