Fix #9147: Delay making screenshots until the next draw tick as we may not access the video buffer from the game thread.

This commit is contained in:
Michael Lutz
2021-05-01 19:55:46 +02:00
committed by Charles Pigott
parent de61dadaa9
commit 72090f39ce
3 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -1439,7 +1439,7 @@ DEF_CONSOLE_CMD(ConScreenShot)
ScreenshotType type = SC_VIEWPORT;
uint32 width = 0;
uint32 height = 0;
const char *name = nullptr;
std::string name{};
uint32 arg_index = 1;
if (argc > arg_index) {