mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fix captureScreenshot when MSAA is used on iOS
--HG-- branch : minor
This commit is contained in:
@@ -996,7 +996,7 @@ void Graphics::present(void *screenshotCallbackData)
|
|||||||
// We need to do an explicit MSAA resolve on iOS, because it uses GLES
|
// We need to do an explicit MSAA resolve on iOS, because it uses GLES
|
||||||
// FBOs rather than a system framebuffer.
|
// FBOs rather than a system framebuffer.
|
||||||
if (GLAD_ES_VERSION_3_0)
|
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)
|
else if (GLAD_APPLE_framebuffer_multisample)
|
||||||
glResolveMultisampleFramebufferAPPLE();
|
glResolveMultisampleFramebufferAPPLE();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user