Commit 3a8ae53d authored by Romain Iehl's avatar Romain Iehl Committed by Alexandre Julliard

dsound: Fix bug preventing correct calculation of the sound parameters

of a 3Dbuffer, when an application calls CommitDeferredSettings after the 3DBuffer has been released.
parent a470ea62
......@@ -326,11 +326,6 @@ static void DSOUND_ChangeListener(IDirectSound3DListenerImpl *ds3dl)
TRACE("(%p)\n",ds3dl);
for (i = 0; i < ds3dl->device->nrofbuffers; i++)
{
/* some buffers don't have 3d buffer (Ultima IX seems to
crash without the following line) */
if (ds3dl->device->buffers[i]->ds3db == NULL)
continue;
/* check if this buffer is waiting for recalculation */
if (ds3dl->device->buffers[i]->ds3db_need_recalc)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment