VideoCore: Make PrimitiveAssembler const-correct

This commit is contained in:
Yuri Kunde Schlesner 2017-01-27 18:10:54 -08:00
parent dcdffabfe6
commit 37a4ea046d
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,7 @@ PrimitiveAssembler<VertexType>::PrimitiveAssembler(Regs::TriangleTopology topolo
: topology(topology), buffer_index(0) {}
template <typename VertexType>
void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx,
void PrimitiveAssembler<VertexType>::SubmitVertex(const VertexType& vtx,
TriangleHandler triangle_handler) {
switch (topology) {
// TODO: Figure out what's different with TriangleTopology::Shader.