libobs-d3d11: Allow rebuild even if output duplicator fails
Prevents an issue where the output duplicator would cause the program to crash if the graphics driver crashes and the graphics subsystem needs to be rebuilt.
This commit is contained in:
@@ -305,7 +305,11 @@ try {
|
||||
((gs_pixel_shader*)obj)->Rebuild(dev);
|
||||
break;
|
||||
case gs_type::gs_duplicator:
|
||||
((gs_duplicator*)obj)->Start();
|
||||
try {
|
||||
((gs_duplicator*)obj)->Start();
|
||||
} catch (...) {
|
||||
((gs_duplicator*)obj)->Release();
|
||||
}
|
||||
break;
|
||||
case gs_type::gs_swap_chain:
|
||||
((gs_swap_chain*)obj)->Rebuild(dev);
|
||||
|
Reference in New Issue
Block a user