Don't error when querying unknown enums for the channel config and sample format
This commit is contained in:
parent
7e5b13aabd
commit
b7d67d8bcc
@ -2788,11 +2788,10 @@ ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device
|
||||
alcSetError(device, ALC_INVALID_DEVICE);
|
||||
else if(freq <= 0)
|
||||
alcSetError(device, ALC_INVALID_VALUE);
|
||||
else if(!IsValidALCType(type) || !IsValidALCChannels(channels))
|
||||
alcSetError(device, ALC_INVALID_ENUM);
|
||||
else
|
||||
{
|
||||
if(BytesFromDevFmt(type) > 0 && ChannelsFromDevFmt(channels) > 0 &&
|
||||
if(IsValidALCType(type) && BytesFromDevFmt(type) > 0 &&
|
||||
IsValidALCChannels(channels) && ChannelsFromDevFmt(channels) > 0 &&
|
||||
freq >= MIN_OUTPUT_RATE)
|
||||
ret = ALC_TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user