From 3ccca53ba09fb639e4ebc743b936aa5b0950dcd1 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Sat, 21 Sep 2024 05:34:48 +0200 Subject: [PATCH] Fix vertex buffer indices --- Sources/integrations/kope.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/integrations/kope.c b/Sources/integrations/kope.c index 3c5771f..f67c576 100644 --- a/Sources/integrations/kope.c +++ b/Sources/integrations/kope.c @@ -827,8 +827,7 @@ void kope_export(char *directory, api_kind api) { fprintf(output, "}\n\n"); fprintf(output, "void kong_set_vertex_buffer_%s(kope_g5_command_list *list, %s_buffer *buffer) {\n", get_name(t->name), get_name(t->name)); - fprintf(output, - "\tkope_d3d12_command_list_set_vertex_buffer(list, %" PRIu64 ", &buffer->buffer.d3d12, 0, buffer->count * sizeof(%s), sizeof(%s));\n", i, + fprintf(output, "\tkope_d3d12_command_list_set_vertex_buffer(list, 0, &buffer->buffer.d3d12, 0, buffer->count * sizeof(%s), sizeof(%s));\n", get_name(t->name), get_name(t->name)); fprintf(output, "}\n\n"); }