diff options
author | Chris Robinson <[email protected]> | 2010-05-19 11:06:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-19 11:06:13 -0700 |
commit | 1e6ba29cd20099fb6c72df33f1321197cfd7fa23 (patch) | |
tree | f6a4dcb4bb8c2ed775a866d2b22bb5b2532d36b8 /OpenAL32/alBuffer.c | |
parent | c5c83882b33b7b32c82d666c77f8f605be4167b3 (diff) |
Consistency fix
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 7ef030e0..8da73d82 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -235,17 +235,16 @@ AL_API ALvoid AL_APIENTRY alDeleteBuffers(ALsizei n, const ALuint *puiBuffers) * * Checks if ulBuffer is a valid Buffer Name */ -AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint uiBuffer) +AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint buffer) { ALCcontext *Context; - ALboolean result = AL_TRUE; + ALboolean result; Context = GetContextSuspended(); if(!Context) return AL_FALSE; - if(uiBuffer) - result = (LookupBuffer(Context->Device->BufferMap, uiBuffer) ? - AL_TRUE : AL_FALSE); + result = ((!buffer || LookupBuffer(Context->Device->BufferMap, buffer)) ? + AL_TRUE : AL_FALSE); ProcessContext(Context); |