- unsigned width = min(source->get_width(), target.get_width());
- unsigned height = min(source->get_height(), target.get_height());
- unsigned buffers = get_gl_buffer_bits(source->get_format())&get_gl_buffer_bits(target.get_format());
+ pipeline_state->apply();
+ glDispatchCompute(count_x, count_y, count_z);
+}
+
+void OpenGLCommands::resolve_multisample()
+{
+ const Framebuffer *framebuffer = (pipeline_state ? pipeline_state->get_framebuffer() : 0);
+ if(!framebuffer)
+ throw invalid_operation("OpenGLCommands::resolve_multisample");
+
+ static Require _req(EXT_framebuffer_blit);
+
+ unsigned width = framebuffer->get_width();
+ unsigned height = framebuffer->get_height();
+ unsigned buffers = get_gl_buffer_bits(framebuffer->get_format());