mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
Log warning when falling back to OpenGL on windows
This commit is contained in:
parent
8b93ba1c53
commit
1df9bcfa49
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue