Whoops - fix a few compilation errors

This commit is contained in:
Dr. Chat 2016-07-29 13:42:56 -05:00
parent a547c79b51
commit cd5d3fae9c
1 changed files with 2 additions and 2 deletions

View File

@ -900,8 +900,8 @@ void SpirvShaderTranslator::ProcessVertexFetchInstruction(
assert_not_zero(vertex_ptr);
auto vertex = b.createLoad(vertex_ptr);
auto cond =
b.createBinOp(spv::Op::OpIEqual, bool_type_, vertex_id, shader_vertex_id);
auto cond = b.createBinOp(spv::Op::OpIEqual, bool_type_, vertex_idx,
shader_vertex_idx);
auto vertex_components = b.getNumComponents(vertex);
Id alt_vertex = 0;
switch (vertex_components) {