We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e5b13a commit b7d67d8Copy full SHA for b7d67d8
Alc/ALc.c
@@ -2788,11 +2788,10 @@ ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device
2788
alcSetError(device, ALC_INVALID_DEVICE);
2789
else if(freq <= 0)
2790
alcSetError(device, ALC_INVALID_VALUE);
2791
- else if(!IsValidALCType(type) || !IsValidALCChannels(channels))
2792
- alcSetError(device, ALC_INVALID_ENUM);
2793
else
2794
{
2795
- if(BytesFromDevFmt(type) > 0 && ChannelsFromDevFmt(channels) > 0 &&
+ if(IsValidALCType(type) && BytesFromDevFmt(type) > 0 &&
+ IsValidALCChannels(channels) && ChannelsFromDevFmt(channels) > 0 &&
2796
freq >= MIN_OUTPUT_RATE)
2797
ret = ALC_TRUE;
2798
}
0 commit comments