void compileTo(VertexArrays& vas) { if (!glBlocks.empty()) throw std::logic_error("Custom code cannot be recorded into a macro"); std::stable_sort(ops.begin(), ops.end()); for (DrawOps::const_iterator op = ops.begin(), end = ops.end(); op != end; ++op) op->compileTo(vas); }