Commit 6f20889f authored by Max Kellermann's avatar Max Kellermann

command/CommandListBuilder: postpone "size" initialization

parent 8e408725
......@@ -27,7 +27,6 @@ void
CommandListBuilder::Reset()
{
list.clear();
size = 0;
mode = Mode::DISABLED;
}
......
......@@ -58,7 +58,7 @@ class CommandListBuilder {
public:
CommandListBuilder()
:mode(Mode::DISABLED), size(0) {}
:mode(Mode::DISABLED) {}
/**
* Is a command list currently being built?
......@@ -89,6 +89,7 @@ public:
assert(mode == Mode::DISABLED);
mode = (Mode)ok;
size = 0;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment