mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Do not reset the renderer on SDL_RENDER_TARGETS_RESET
We only need to do this on a SDL_RENDER_DEVICE_RESET where we lose the whole device.
This also reverts a56efe5 since this change is not needed when handling the reset events properly.
This commit is contained in:
1 parent
a2122e17c6
commit
5020fc6f48
6 files changed
+15
-17
No files matched your search
@@ -871,7 +871,7 @@ void PlVkRenderer::renderFrame(AVFrame *frame)
|
||||
|
||||
// Recreate the renderer
|
||||
SDL_Event event;
|
||||
event.type = SDL_RENDER_TARGETS_RESET;
|
||||
event.type = SDL_RENDER_DEVICE_RESET;
|
||||
SDL_PushEvent(&event);
|
||||
goto UnmapExit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user