libobs: Support device loss registration

Complex external systems using the D3D11 device may need to perform
their own device loss handling, the upcoming Windows Graphics Capture
support for example.
This commit is contained in:
jpark37
2019-11-27 16:35:27 -08:00
committed by jp9000
parent 82797eb367
commit f27f858ab3
7 changed files with 66 additions and 0 deletions

View File

@@ -946,6 +946,7 @@ struct gs_device {
matrix4 curViewMatrix;
matrix4 curViewProjMatrix;
vector<gs_device_loss> loss_callbacks;
gs_obj *first_obj = nullptr;
void InitCompiler();