summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OpenAL32/alBuffer.c9
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);