Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorD.J. Capelis <blender@capelis.dj>2006-07-13 00:01:48 +0400
committerD.J. Capelis <blender@capelis.dj>2006-07-13 00:01:48 +0400
commit6ba882630dbf25b5ec31d3ae83525b770540f045 (patch)
tree81a9be0715f44ed591a5af3e0f2515c9ab1564e9 /source
parent7aaa8c720c912ba4a2816bec3ba3d970e44955ba (diff)
Patch by fab31 not to clobber SDL audio environment variables if they're
already set.
Diffstat (limited to 'source')
-rw-r--r--source/creator/creator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 3f45117b91e..baf122f7484 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -275,7 +275,9 @@ int main(int argc, char **argv)
#ifdef __alpha__
signal (SIGFPE, fpe_handler);
#else
- setenv("SDL_AUDIODRIVER", "dma", 1);
+ if ( getenv("SDL_AUDIODRIVER") == NULL) {
+ setenv("SDL_AUDIODRIVER", "dma", 1);
+ }
#endif
#endif
#if defined(__sgi)