From 5f3e285643c87af749478bcf928aea04219698c6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 13 Sep 2021 19:57:48 +0300 Subject: [PATCH] Fix a bug in Renderer::resolve_multisample Apply_state requires a shader program to be set, but it's not actually needed here. --- source/render/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.45.2