From 1d1440ac645806ccba68bd1150404eeb98b1af1f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 26 Jan 2012 16:31:46 -0800 Subject: [PATCH] Make sure context attributes are specified for loopback devices --- Alc/ALc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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]) { -- 2.11.4.GIT