aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-26 20:27:14 -0800
committerChris Robinson <[email protected]>2009-12-26 20:27:14 -0800
commit528a4c6a02cfdba9721af2d949a08ce48baf256d (patch)
tree87a38652cd93b7e5128fcbbf87bedf737888d584 /Alc
parent1770a8b62bf692be37c719cd18a03654dcc567a6 (diff)
Update panning for existing AL contexts when creating a new one
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 13acaa3a..7cdf2049 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -606,8 +606,6 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->flSpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXTX_source_distance_model AL_LOKI_quadriphonic";
-
- aluInitPanning(pContext);
}
@@ -1295,6 +1293,7 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
}
source->NeedsUpdate = AL_TRUE;
}
+ aluInitPanning(context);
ProcessContext(context);
}
@@ -1335,6 +1334,7 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
ALContext->Device = device;
InitContext(ALContext);
+ aluInitPanning(ALContext);
ALContext->next = g_pContextList;
g_pContextList = ALContext;