Remove SDL_VIDEODRIVER=dummy environment variable setting, this may interfere

with other applications launching SDL applications from Blender.

At the time this was added the game engine joystick code was unnecessarily
initializing the SDL video subsystem, and looking at the SDL source code that's
the only place this environment variable is read. That doesn't happen anymore,
though we do have WITH_GHOST_SDL now. But the environment variable is set after
GHOST has been initialized, otherwise this code would have actually broken that.
This commit is contained in:
Brecht Van Lommel 2013-07-04 11:28:52 +00:00
parent 69b8b16464
commit 1c01ad53d5

@ -1584,10 +1584,6 @@ int main(int argc, const char **argv)
/* this is properly initialized with user defs, but this is default */ /* this is properly initialized with user defs, but this is default */
/* call after loading the startup.blend so we can read U.tempdir */ /* call after loading the startup.blend so we can read U.tempdir */
BLI_init_temporary_dir(U.tempdir); BLI_init_temporary_dir(U.tempdir);
#ifdef WITH_SDL
BLI_setenv("SDL_VIDEODRIVER", "dummy");
#endif
} }
else { else {
#ifndef WITH_PYTHON_MODULE #ifndef WITH_PYTHON_MODULE