vk: Minor fixes to vertex counting and lower exception to notice if var does not exist

This commit is contained in:
kd-11 2017-03-26 01:24:19 +03:00
parent 79d114cc06
commit ba968048c9
2 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,7 @@ namespace vk
}
}
fmt::throw_exception("texture not found" HERE);
LOG_NOTICE(RSX, "texture not found in program: %s", uniform_name.c_str());
}
void program::bind_uniform(VkDescriptorBufferInfo buffer_descriptor, uint32_t binding_point, VkDescriptorSet &descriptor_set)
@ -100,7 +100,8 @@ namespace vk
return;
}
}
fmt::throw_exception("vertex buffer not found" HERE);
LOG_NOTICE(RSX, "vertex buffer not found in program: %s", binding_name.c_str());
}
}
}

View File

@ -375,7 +375,7 @@ namespace
u32 min_index =
rsx::method_registers.current_draw_clause.first_count_commands.front().first;
u32 max_index =
rsx::method_registers.current_draw_clause.get_elements_count() + min_index;
rsx::method_registers.current_draw_clause.get_elements_count() + min_index - 1;
if (primitives_emulated) {
std::tie(index_count, index_info) =