Prevent crash on Windows when using GPU with automatic video mode.