From: Mikko Rasa Date: Thu, 7 Apr 2022 20:50:31 +0000 (+0300) Subject: Refresh target framebuffer before blitting X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=69965e5d8e01533dae11bb38c1641adfd2814ae5;p=libs%2Fgl.git Refresh target framebuffer before blitting It seems that this has been broken since ce36589 without getting noticed. --- 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);