From 05a081a7b8660a90b1000f0727fda5a29e8fe3fa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 17 Mar 2010 14:04:25 -0700 Subject: Allow selecting databuffer 0 --- OpenAL32/alDatabuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenAL32') 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; -- cgit v1.2.3