aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-01-26 16:31:46 -0800
committerChris Robinson <[email protected]>2012-01-26 16:31:46 -0800
commit1d1440ac645806ccba68bd1150404eeb98b1af1f (patch)
tree0ea0fbd5e78c3e2ae14fd90b9831bf010e097fad /Alc
parent119768001cc9c7ca3be545f24fd9a7f1ac253836 (diff)
Make sure context attributes are specified for loopback devices
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 29ccbf45..dfdece10 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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])
{