From 8c2a2a5c9da7793c71d94770b4bee40b4f123ccf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Sep 2011 11:55:40 -0700 Subject: Trace created device and context pointers --- Alc/ALc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Alc/ALc.c') diff --git a/Alc/ALc.c b/Alc/ALc.c index 8762272e..63104e11 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1634,6 +1634,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, device->next = DeviceList; } while(!CompExchangePtr((void**)&DeviceList, device->next, device)); + TRACE("Created device %p\n", device); return device; } @@ -2224,6 +2225,8 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin UnlockLists(); ALCdevice_DecRef(device); + + TRACE("Created context %p\n", ALContext); return ALContext; } @@ -2492,6 +2495,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) device->next = DeviceList; } while(!CompExchangePtr((void**)&DeviceList, device->next, device)); + TRACE("Created device %p\n", device); return device; } @@ -2605,6 +2609,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(void) device->next = DeviceList; } while(!CompExchangePtr((void**)&DeviceList, device->next, device)); + TRACE("Created device %p\n", device); return device; } -- cgit v1.2.3