diff options
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 */ |