From 199df253caad196162b02d61fd7ed06606193890 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 22 Aug 2011 07:40:14 -0700 Subject: Always use the thunk functions to get object IDs --- OpenAL32/alSource.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 6a6edfa0..cf71e2e9 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -85,12 +85,12 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources) break; } - err = ALTHUNK_NEWENTRY(source, &source->source); + err = NewThunkEntry(&source->source); if(err == AL_NO_ERROR) err = InsertUIntMapEntry(&Context->SourceMap, source->source, source); if(err != AL_NO_ERROR) { - ALTHUNK_REMOVEENTRY(source->source); + FreeThunkEntry(source->source); memset(source, 0, sizeof(ALsource)); free(source); @@ -175,7 +175,7 @@ AL_API ALvoid AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources) // Remove Source from list of Sources RemoveUIntMapKey(&Context->SourceMap, Source->source); - ALTHUNK_REMOVEENTRY(Source->source); + FreeThunkEntry(Source->source); memset(Source,0,sizeof(ALsource)); free(Source); @@ -2165,7 +2165,7 @@ ALvoid ReleaseALSources(ALCcontext *Context) } // Release source structure - ALTHUNK_REMOVEENTRY(temp->source); + FreeThunkEntry(temp->source); memset(temp, 0, sizeof(ALsource)); free(temp); } -- cgit v1.2.3