Browse Source

Log warning when falling back to OpenGL on windows

Palana 11 years ago
parent
commit
1df9bcfa49
1 changed files with 5 additions and 0 deletions
  1. 5 0
      obs/window-basic-main.cpp

+ 5 - 0
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);
 		}