From 442f37e0a1c50acdc9cff76d87ca5a1e6961f215 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 25 Oct 2020 23:00:12 -0300 Subject: [PATCH] Fix a potential bug in captureScreenshot on some older systems --- src/modules/graphics/opengl/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 30bfa9ac5..463f88eb3 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -1096,7 +1096,7 @@ void Graphics::present(void *screenshotCallbackData) throw love::Exception("Out of memory."); } - gl.bindFramebuffer(OpenGL::FRAMEBUFFER_READ, getSystemBackbufferFBO()); + gl.bindFramebuffer(OpenGL::FRAMEBUFFER_ALL, getSystemBackbufferFBO()); glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels); // Replace alpha values with full opacity.