Commit 3ceafcf1 authored by Jose Fonseca's avatar Jose Fonseca
Browse files

draw: Fix vertex buffer indexation.

parent d2f8162f
......@@ -662,7 +662,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant)
velem->vertex_buffer_index,
0);
LLVMValueRef vb = LLVMBuildGEP(builder, vb_ptr,
&vb_index, 0, "");
&vb_index, 1, "");
generate_fetch(builder, vbuffers_ptr,
&aos_attribs[j][i], velem, vb, true_index);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment