diff options
author | Chris Robinson <[email protected]> | 2012-04-19 22:28:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-19 22:28:01 -0700 |
commit | c9e64596a4266bdb6a9b76e30068d725729123c3 (patch) | |
tree | 8271b7b3fad1b26c301ab62eed46389c1a2f2d56 /OpenAL32/alEffect.c | |
parent | 08bd5e8b37f63711a5d4d40418188e21c603f856 (diff) |
Use a consistent name for the self-id field
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r-- | OpenAL32/alEffect.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index e00a3fb9..8af93e14 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -63,12 +63,12 @@ AL_API ALvoid AL_APIENTRY alGenEffects(ALsizei n, ALuint *effects) break; } - err = NewThunkEntry(&effect->effect); + err = NewThunkEntry(&effect->id); if(err == AL_NO_ERROR) - err = InsertUIntMapEntry(&device->EffectMap, effect->effect, effect); + err = InsertUIntMapEntry(&device->EffectMap, effect->id, effect); if(err != AL_NO_ERROR) { - FreeThunkEntry(effect->effect); + FreeThunkEntry(effect->id); memset(effect, 0, sizeof(ALeffect)); free(effect); @@ -77,7 +77,7 @@ AL_API ALvoid AL_APIENTRY alGenEffects(ALsizei n, ALuint *effects) break; } - effects[i] = effect->effect; + effects[i] = effect->id; } } @@ -118,7 +118,7 @@ AL_API ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, const ALuint *effects) // Recheck that the effect is valid, because there could be duplicated names if((ALEffect=RemoveEffect(device, effects[i])) == NULL) continue; - FreeThunkEntry(ALEffect->effect); + FreeThunkEntry(ALEffect->id); memset(ALEffect, 0, sizeof(ALeffect)); free(ALEffect); @@ -1188,7 +1188,7 @@ ALvoid ReleaseALEffects(ALCdevice *device) device->EffectMap.array[i].value = NULL; // Release effect structure - FreeThunkEntry(temp->effect); + FreeThunkEntry(temp->id); memset(temp, 0, sizeof(ALeffect)); free(temp); } |