Fixing wrong if condition
@@ -97,6 +97,12 @@ private void updateFullScale() {
public void update() {
if (!screenGrabber.isTakingScreenshot()) {
if (wasTakingScreenshotLastFrame) {
+ updateFullScale();
+ regenerateFbos();
+
+ wasTakingScreenshotLastFrame = false;
+ }
+ } else {
ScreenshotSize screenshotSize = renderingConfig.getScreenshotSize();
// TODO: Remove dependency on Display
fullScale.setDimensions(screenshotSize.getWidth(Display.getWidth()),
@@ -105,12 +111,6 @@ public void update() {
wasTakingScreenshotLastFrame = true;
}
- } else {
- updateFullScale();
- regenerateFbos();
-
- wasTakingScreenshotLastFrame = false;
- }
}
private void regenerateFbos() {
