From 3adc9b45be0101e9cb47a83b4bd0b9782a538741 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 5 Jan 2017 14:50:03 +0000 Subject: [PATCH] Fix captureScreenshot when MSAA is used on iOS --HG-- branch : minor --- 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 4e3f7d2c0..b76fe2700 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -996,7 +996,7 @@ void Graphics::present(void *screenshotCallbackData) // We need to do an explicit MSAA resolve on iOS, because it uses GLES // FBOs rather than a system framebuffer. if (GLAD_ES_VERSION_3_0) - glBlitFramebuffer(0, 0, width, height, 0, 0, width, height, GL_COLOR_BUFFER_BIT, GL_NEAREST); + glBlitFramebuffer(0, 0, w, h, 0, 0, w, h, GL_COLOR_BUFFER_BIT, GL_NEAREST); else if (GLAD_APPLE_framebuffer_multisample) glResolveMultisampleFramebufferAPPLE();