diff options
author | Chris Robinson <[email protected]> | 2012-01-26 16:31:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-01-26 16:31:46 -0800 |
commit | 1d1440ac645806ccba68bd1150404eeb98b1af1f (patch) | |
tree | 0ea0fbd5e78c3e2ae14fd90b9831bf010e097fad /Alc/ALc.c | |
parent | 119768001cc9c7ca3be545f24fd9a7f1ac253836 (diff) |
Make sure context attributes are specified for loopback devices
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1050,6 +1050,12 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) int oldMode; ALuint i; + if(device->IsLoopbackDevice && !(attrList && attrList[0])) + { + WARN("Missing attributes for loopback device\n"); + return ALC_INVALID_VALUE; + } + // Check for attributes if(attrList && attrList[0]) { |