From 1df9bcfa4953ff7f8f2a4d007c144d5280494a99 Mon Sep 17 00:00:00 2001 From: Palana Date: Tue, 14 Oct 2014 18:07:49 +0200 Subject: [PATCH] Log warning when falling back to OpenGL on windows --- obs/window-basic-main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 3fa751a9b..55dee2f69 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -1370,6 +1370,11 @@ int OBSBasic::ResetVideo() if (IS_WIN32 && ret != OBS_VIDEO_SUCCESS) { /* Try OpenGL if DirectX fails on windows */ if (astrcmpi(ovi.graphics_module, "libobs-opengl") != 0) { + blog(LOG_WARNING, "Failed to initialize obs video (%d) " + "with graphics_module='%s', retrying " + "with graphics_module='%s'", + ret, ovi.graphics_module, + "libobs-opengl"); ovi.graphics_module = "libobs-opengl"; ret = AttemptToResetVideo(&ovi); }