Report video buffer downstream errors

Make the video buffer stop if its consumer could not receive a frame.
This commit is contained in:
Romain Vimont
2023-03-01 18:45:22 +01:00
parent ad94ccca0b
commit 4540f1d69e
5 changed files with 10 additions and 22 deletions

View File

@@ -59,8 +59,6 @@ struct sc_screen {
bool maximized;
bool mipmaps;
bool event_failed; // in case SDL_PushEvent() returned an error
// To enable/disable mouse capture, a mouse capture key (LALT, LGUI or
// RGUI) must be pressed. This variable tracks the pressed capture key.
SDL_Keycode mouse_capture_key_pressed;