aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-09 06:09:29 -0800
committerChris Robinson <[email protected]>2010-03-09 06:09:29 -0800
commit8feb089f5ca9166810cb2655356db2006cd22496 (patch)
treec998636a4749690683d471d366f52b24d5cc729e /Alc/ALc.c
parent2ba3a88ace65803393c7f4bdb1b9e158a644d05e (diff)
Build device lists only when needed
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 40538a64..7332fd9e 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -681,9 +681,6 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, AL
if(deviceName && !deviceName[0])
deviceName = NULL;
- if(!alcCaptureDeviceList)
- ProbeCaptureDeviceList();
-
pDevice = malloc(sizeof(ALCdevice));
if (pDevice)
{
@@ -1689,11 +1686,6 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName)
if(deviceName && !deviceName[0])
deviceName = NULL;
- if(!alcDeviceList)
- ProbeDeviceList();
- if(!alcAllDeviceList)
- ProbeAllDeviceList();
-
device = malloc(sizeof(ALCdevice));
if (device)
{