diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-04-26 00:26:27 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-04-26 00:26:27 +0400 |
commit | fb7803c300a89892f1d5a76398b3c2506465cf60 (patch) | |
tree | 305d5ff0d9ab94ca802fc29b7d96e0911cc56e49 /source/creator/creator.c | |
parent | dd21e9b62691daab1464dda0a0ab44d107480dec (diff) |
Amendment for 19924 - no setenv() on Windows, make it work with _putenv_s().
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 7804eb7ad98..74e899d2d14 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -538,7 +538,11 @@ int main(int argc, char **argv) BLI_where_is_temp( btempdir, 1 ); /* call after loading the .B.blend so we can read U.tempdir */ #ifndef DISABLE_SDL +#ifndef WIN32 setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */ +#else + _putenv_s("SDL_VIDEODRIVER", "dummy"); +#endif #ifdef __linux__ /* On linux the default SDL driver dma often would not play * use alsa if none is set */ |