From 69965e5d8e01533dae11bb38c1641adfd2814ae5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 7 Apr 2022 23:50:31 +0300 Subject: [PATCH] Refresh target framebuffer before blitting It seems that this has been broken since ce36589 without getting noticed. --- source/backends/opengl/commands_backend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/backends/opengl/commands_backend.cpp b/source/backends/opengl/commands_backend.cpp index 1ec19c13..7d599153 100644 --- a/source/backends/opengl/commands_backend.cpp +++ b/source/backends/opengl/commands_backend.cpp @@ -91,7 +91,10 @@ void OpenGLCommands::resolve_multisample(Framebuffer &target) unsigned buffers = get_gl_buffer_bits(source->get_format())&get_gl_buffer_bits(target.get_format()); if(ARB_direct_state_access) + { + target.refresh(); glBlitNamedFramebuffer(source->id, target.id, 0, 0, width, height, 0, 0, width, height, buffers, GL_NEAREST); + } else { glBindFramebuffer(GL_READ_FRAMEBUFFER, source->id); -- 2.45.2