]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a bug in Renderer::resolve_multisample
authorMikko Rasa <tdb@tdb.fi>
Mon, 13 Sep 2021 16:57:48 +0000 (19:57 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 13 Sep 2021 17:02:16 +0000 (20:02 +0300)
Apply_state requires a shader program to be set, but it's not actually
needed here.

source/render/renderer.cpp

index b6775202f61d1e696d55e97b15daa4309923816d..61eccb3b367ab4540e48bd40768c56beec966163 100644 (file)
@@ -277,7 +277,7 @@ void Renderer::resolve_multisample(Framebuffer &target, BufferBits buffers)
        if(target.get_width()!=width || target.get_height()!=height)
                throw incompatible_data("Renderer::resolve_multisample");
 
-       apply_state();
+       pipeline_state.set_framebuffer(state->framebuffer);
        commands.resolve_multisample(target, buffers);
 }