aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/vertex_loader.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-04-29 11:27:15 -0400
committerLioncash <mathew1800@gmail.com>2016-05-08 23:08:12 -0400
commit5587383eb72b02af79526d6fe5e662b281b4b32b (patch)
tree95c9bb632660e19038401f868a787255178cc460 /src/video_core/vertex_loader.h
parent1357724cd946f3a9f31dbe3ace55a9588f3c6f2f (diff)
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.
Diffstat (limited to 'src/video_core/vertex_loader.h')
-rw-r--r--src/video_core/vertex_loader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
index 2a97b97c8..7192120a5 100644
--- a/src/video_core/vertex_loader.h
+++ b/src/video_core/vertex_loader.h
@@ -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