From a531e156e56a115e986605e9dfe62c94f27a396a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 11 Aug 2011 02:43:56 -0700 Subject: [PATCH] Check for AL errors after setting all parameters --- buffer.c | 1 + primary.c | 1 + 2 files changed, 2 insertions(+) diff --git a/buffer.c b/buffer.c index 64f9d3be03d..906d0ac7f74 100644 --- a/buffer.c +++ b/buffer.c @@ -2403,6 +2403,7 @@ static HRESULT WINAPI DS8Buffer3D_SetAllParameters(IDirectSound3DBuffer *iface, EnterCriticalSection(This->crst); setALContext(This->ctx); DS8Buffer_SetParams(This, ds3dbuffer, dirty.flags); + checkALError(); popALContext(); LeaveCriticalSection(This->crst); } diff --git a/primary.c b/primary.c index a6e53480f4d..c9ae5e17591 100644 --- a/primary.c +++ b/primary.c @@ -1299,6 +1299,7 @@ static HRESULT WINAPI DS8Primary3D_SetAllParameters(IDirectSound3DListener *ifac EnterCriticalSection(This->crst); setALContext(This->ctx); DS8Primary_SetParams(This, listen, dirty.flags); + checkALError(); popALContext(); LeaveCriticalSection(This->crst); } -- 2.11.4.GIT