Don't shut down camera when exiting games,also re-enumerating devices if

received WM_DEVICECHANGE.
This commit is contained in:
shenweip committed 2020-01-24 16:05:28 +08:00
1 parent 97c81ac5a2
commit 3f585782f1
5 files changed
+90 -38

No files matched your search

+2
View File
@@ -893,6 +893,8 @@ void NativeShutdownGraphics() {
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
if (winCamera) {
winCamera->sendMessage({ CAPTUREDEVIDE_COMMAND::SHUTDOWN, nullptr });
while (!winCamera->isShutDown()) {};// Wait for shutting down.
delete winCamera;
winCamera = nullptr;
}