vertex_loader: Provide an assertion for ensuring the loader has been setup

Also adds an assert to ensure that Setup is not called more than once
during a VertexLoader's lifetime.
This commit is contained in:
Lioncash 2016-04-29 11:27:15 -04:00
parent 1357724cd9
commit 5587383eb7
2 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,7 @@ private:
std::array<u32, 16> vertex_attribute_elements{};
std::array<bool, 16> vertex_attribute_is_default;
int num_total_attributes = 0;
bool is_setup = false;
};
} // namespace Pica