aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-20 11:55:40 -0700
committerChris Robinson <[email protected]>2011-09-20 11:55:40 -0700
commit8c2a2a5c9da7793c71d94770b4bee40b4f123ccf (patch)
tree14e60d72da333e16f27c7abc4c229b8db73ee509
parentbf2ac6625cc5a7f749bd30ff4b575b60b80d5b21 (diff)
Trace created device and context pointers
-rw-r--r--Alc/ALc.c5
1 files changed, 5 insertions, 0 deletions
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;
}