diff --git a/rpcs3/Emu/RSX/Common/BufferUtils.cpp b/rpcs3/Emu/RSX/Common/BufferUtils.cpp index 88cce470d8..8780d3b14b 100644 --- a/rpcs3/Emu/RSX/Common/BufferUtils.cpp +++ b/rpcs3/Emu/RSX/Common/BufferUtils.cpp @@ -262,7 +262,7 @@ bool is_primitive_native(rsx::primitive_type draw_mode) * see http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/polygon-triangulation-r3334 */ -size_t get_index_count(rsx::primitive_type draw_mode, unsigned initial_index_count) +u32 get_index_count(rsx::primitive_type draw_mode, u32 initial_index_count) { // Index count if (is_primitive_native(draw_mode)) @@ -284,7 +284,7 @@ size_t get_index_count(rsx::primitive_type draw_mode, unsigned initial_index_cou } } -size_t get_index_type_size(rsx::index_array_type type) +u32 get_index_type_size(rsx::index_array_type type) { switch (type) { diff --git a/rpcs3/Emu/RSX/Common/BufferUtils.h b/rpcs3/Emu/RSX/Common/BufferUtils.h index 6c9918ba3b..1edcef45a6 100644 --- a/rpcs3/Emu/RSX/Common/BufferUtils.h +++ b/rpcs3/Emu/RSX/Common/BufferUtils.h @@ -20,12 +20,12 @@ bool is_primitive_native(rsx::primitive_type m_draw_mode); /** * Returns a fixed index count for emulated primitive, otherwise returns initial_index_count */ -size_t get_index_count(rsx::primitive_type m_draw_mode, unsigned initial_index_count); +u32 get_index_count(rsx::primitive_type m_draw_mode, u32 initial_index_count); /** * Returns index type size in byte */ -size_t get_index_type_size(rsx::index_array_type type); +u32 get_index_type_size(rsx::index_array_type type); /** * Write count indexes using (first, first + count) ranges.