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:
@@ -28,7 +28,7 @@ enum ScreenshotType {
|
||||
void SetupScreenshotViewport(ScreenshotType t, struct Viewport *vp, uint32 width = 0, uint32 height = 0);
|
||||
bool MakeHeightmapScreenshot(const char *filename);
|
||||
void MakeScreenshotWithConfirm(ScreenshotType t);
|
||||
bool MakeScreenshot(ScreenshotType t, const char *name, uint32 width = 0, uint32 height = 0);
|
||||
bool MakeScreenshot(ScreenshotType t, std::string name, uint32 width = 0, uint32 height = 0);
|
||||
bool MakeMinimapWorldScreenshot();
|
||||
|
||||
extern char _screenshot_format_name[8];
|
||||
|
Reference in New Issue
Block a user