From: Mikko Rasa Date: Mon, 13 Sep 2021 16:57:48 +0000 (+0300) Subject: Fix a bug in Renderer::resolve_multisample X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5f3e285643c87af749478bcf928aea04219698c6;p=libs%2Fgl.git Fix a bug in Renderer::resolve_multisample Apply_state requires a shader program to be set, but it's not actually needed here. --- diff --git a/source/render/renderer.cpp b/source/render/renderer.cpp index b6775202..61eccb3b 100644 --- a/source/render/renderer.cpp +++ b/source/render/renderer.cpp @@ -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); }