diff --git a/src/graphics.cpp b/src/graphics.cpp index 7823614..0bf8aab 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -521,7 +521,7 @@ struct GraphicsPrivate screen.getPP().bindLastBuffer(); - glReadPixels(0, 0, scSize.x, scSize.y, GL_RGBA, GL_UNSIGNED_BYTE, screenshot->pixels); + glReadPixels(0, 0, scRes.x, scRes.y, GL_RGBA, GL_UNSIGNED_BYTE, screenshot->pixels); IMG_SavePNG(screenshot, filename);