summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alDatabuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-17 14:04:25 -0700
committerChris Robinson <[email protected]>2010-03-17 14:04:25 -0700
commit05a081a7b8660a90b1000f0727fda5a29e8fe3fa (patch)
treedc700f2e0277ccfa1b15ed1aa2c30682f0ff9954 /OpenAL32/alDatabuffer.c
parent9c417d33cc3e45d8b035de405f9a9c94be1ed218 (diff)
Allow selecting databuffer 0
Diffstat (limited to 'OpenAL32/alDatabuffer.c')
-rw-r--r--OpenAL32/alDatabuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/alDatabuffer.c b/OpenAL32/alDatabuffer.c
index 29c13ebb..b7de80db 100644
--- a/OpenAL32/alDatabuffer.c
+++ b/OpenAL32/alDatabuffer.c
@@ -547,7 +547,8 @@ ALvoid ALAPIENTRY alSelectDatabufferEXT(ALenum target, ALuint uiBuffer)
if(!pContext) return;
Device = pContext->Device;
- if((pBuffer=VerifyDatabuffer(Device->DatabufferList, uiBuffer)) != NULL)
+ if(uiBuffer == 0 ||
+ (pBuffer=VerifyDatabuffer(Device->DatabufferList, uiBuffer)) != NULL)
{
if(target == AL_SAMPLE_SOURCE_EXT)
pContext->SampleSource = pBuffer;