command/CommandListBuilder: postpone "size" initialization
This commit is contained in:
parent
8e408725e9
commit
6f20889f00
@ -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 {
|
|||||||
|
|
||||||
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:
|
|||||||
assert(mode == Mode::DISABLED);
|
assert(mode == Mode::DISABLED);
|
||||||
|
|
||||||
mode = (Mode)ok;
|
mode = (Mode)ok;
|
||||||
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user