citra-emu
/
citra-canary
Archived
1
0
Fork 0

Merge pull request #6183 from GPUCode/master

citra_qt: Avoid null reference capture when taking screenshots
This commit is contained in:
GPUCode 2022-11-09 16:50:31 +02:00 committed by GitHub
commit b9d9ae35e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_p
screenshot_image = QImage(QSize(layout.width, layout.height), QImage::Format_RGB32);
VideoCore::RequestScreenshot(
screenshot_image.bits(),
[this, &screenshot_path] {
[this, screenshot_path] {
const std::string std_screenshot_path = screenshot_path.toStdString();
if (screenshot_image.mirrored(false, true).save(screenshot_path)) {
LOG_INFO(Frontend, "Screenshot saved to \"{}\"", std_screenshot_path);