aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
committerChris Robinson <[email protected]>2011-08-22 07:40:14 -0700
commit199df253caad196162b02d61fd7ed06606193890 (patch)
treea7ef47822a1593b600c440da9cc2f0e5586df8be /OpenAL32/alBuffer.c
parentc1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (diff)
Always use the thunk functions to get object IDs
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 1f54752c..7d5b895f 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -163,12 +163,12 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers)
break;
}
- err = ALTHUNK_NEWENTRY(buffer, &buffer->buffer);
+ err = NewThunkEntry(&buffer->buffer);
if(err == AL_NO_ERROR)
err = InsertUIntMapEntry(&device->BufferMap, buffer->buffer, buffer);
if(err != AL_NO_ERROR)
{
- ALTHUNK_REMOVEENTRY(buffer->buffer);
+ FreeThunkEntry(buffer->buffer);
memset(buffer, 0, sizeof(ALbuffer));
free(buffer);
@@ -245,7 +245,7 @@ AL_API ALvoid AL_APIENTRY alDeleteBuffers(ALsizei n, const ALuint *buffers)
/* Release buffer structure */
RemoveUIntMapKey(&device->BufferMap, ALBuf->buffer);
- ALTHUNK_REMOVEENTRY(ALBuf->buffer);
+ FreeThunkEntry(ALBuf->buffer);
memset(ALBuf, 0, sizeof(ALbuffer));
free(ALBuf);
@@ -2204,7 +2204,7 @@ ALvoid ReleaseALBuffers(ALCdevice *device)
free(temp->data);
- ALTHUNK_REMOVEENTRY(temp->buffer);
+ FreeThunkEntry(temp->buffer);
memset(temp, 0, sizeof(ALbuffer));
free(temp);
}