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

command/CommandListBuilder: postpone "size" initialization

parent 8e408725
...@@ -27,7 +27,6 @@ void ...@@ -27,7 +27,6 @@ void
CommandListBuilder::Reset() CommandListBuilder::Reset()
{ {
list.clear(); list.clear();
size = 0;
mode = Mode::DISABLED; mode = Mode::DISABLED;
} }
......
...@@ -58,7 +58,7 @@ class CommandListBuilder { ...@@ -58,7 +58,7 @@ class CommandListBuilder {
public: public:
CommandListBuilder() CommandListBuilder()
:mode(Mode::DISABLED), size(0) {} :mode(Mode::DISABLED) {}
/** /**
* Is a command list currently being built? * Is a command list currently being built?
...@@ -89,6 +89,7 @@ public: ...@@ -89,6 +89,7 @@ public:
assert(mode == Mode::DISABLED); assert(mode == Mode::DISABLED);
mode = (Mode)ok; 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