diff options
author | Chris Robinson <[email protected]> | 2010-03-17 14:04:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-17 14:04:25 -0700 |
commit | 05a081a7b8660a90b1000f0727fda5a29e8fe3fa (patch) | |
tree | dc700f2e0277ccfa1b15ed1aa2c30682f0ff9954 /OpenAL32 | |
parent | 9c417d33cc3e45d8b035de405f9a9c94be1ed218 (diff) |
Allow selecting databuffer 0
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alDatabuffer.c | 3 |
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; |