diff --git a/Source/Core/Common/Src/VideoBackendBase.cpp b/Source/Core/Common/Src/VideoBackendBase.cpp index 1fbe0f4a41..339cb016c1 100644 --- a/Source/Core/Common/Src/VideoBackendBase.cpp +++ b/Source/Core/Common/Src/VideoBackendBase.cpp @@ -69,6 +69,9 @@ void VideoBackend::ClearList() void VideoBackend::ActivateBackend(const std::string& name) { + if (name.length() == 0) // If NULL, set it to the first one in the list. Expected behavior + g_video_backend = g_available_video_backends.front(); + for (std::vector::const_iterator it = g_available_video_backends.begin(); it != g_available_video_backends.end(); ++it) if (name == (*it)->GetName()) g_video_backend = *it;