aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-01-09 02:48:18 -0800
committerChris Robinson <[email protected]>2010-01-09 02:48:18 -0800
commit3d11fb219eda2b81253824ce5fb233ad05edf7da (patch)
treefbd3f67f79ed6b1ae2d16d561fb4979cc44b51d3 /Alc/ALc.c
parent4d9a368f96b14ed20bffdc6700a077b1fe875487 (diff)
Hold the default context extensions globally
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1efaf0ad..a9708e5d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -208,6 +208,13 @@ static tls_type LocalContext;
// Context Error
static ALCenum g_eLastContextError = ALC_NO_ERROR;
+// Default context extensions
+static const ALchar alExtList[] =
+ "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";
+
// Mixing Priority Level
ALint RTPrioLevel;
@@ -608,7 +615,7 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->DopplerVelocity = 1.0f;
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";
+ pContext->ExtensionList = alExtList;
}