mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
Don't shut down camera when exiting games,also re-enumerating devices if
received WM_DEVICECHANGE.
This commit is contained in:
1 parent
97c81ac5a2
commit
3f585782f1
5 files changed
+90
-38
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user