]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.cpp
Rework multisample resolve to use resolve attachments
[libs/gl.git] / source / render / renderer.cpp
index ce0b3447b2b02a43df1029db2b358cd4f8aa2cb8..50d3887369a30cbcdf6b8b1f99e83ea33ca08a94 100644 (file)
@@ -304,21 +304,16 @@ void Renderer::dispatch(unsigned count_x, unsigned count_y, unsigned count_z)
        commands.dispatch(count_x, count_y, count_z);
 }
 
-void Renderer::resolve_multisample(Framebuffer &target)
+void Renderer::resolve_multisample()
 {
        const State &state = get_state();
 
        if(!state.framebuffer)
                throw invalid_operation("Renderer::resolve_multisample");
 
-       unsigned width = state.framebuffer->get_width();
-       unsigned height = state.framebuffer->get_height();
-       if(target.get_width()!=width || target.get_height()!=height)
-               throw incompatible_data("Renderer::resolve_multisample");
-
        apply_framebuffer();
        commands.use_pipeline(&get_pipeline_state());
-       commands.resolve_multisample(target);
+       commands.resolve_multisample();
 }
 
 void Renderer::begin_query(const QueryPool &pool, unsigned index)