Fixed crash in Hibana PV

This commit is contained in:
korenkonder
2024-06-05 23:57:46 +03:00
parent 33d211f82d
commit a8d3a63c28
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -2751,6 +2751,10 @@ namespace mdl {
#pragma warning(pop)
#endif
bool DispManager::entry_obj_by_object_info(const mat4* mat, object_info obj_info) {
return entry_obj_by_object_info(mat, obj_info, 0, 0, 0, 0, 0, 0, false);
}
bool DispManager::entry_obj_by_object_info(const mat4* mat, object_info obj_info, mat4* bone_mat) {
vec4 blend_color = 1.0f;
return entry_obj_by_object_info(mat, obj_info, &blend_color, bone_mat, 0, 0, 0, 0, true);
+2 -1
View File
@@ -467,7 +467,8 @@ namespace mdl {
::obj* obj, prj::vector<GLuint>* textures, obj_mesh_vertex_buffer_aft* obj_vert_buf,
obj_mesh_index_buffer* obj_index_buf, mat4* bone_mat, float_t alpha);
#endif
bool entry_obj_by_object_info(const mat4* mat, object_info obj_info, mat4* bone_mat = 0);
bool entry_obj_by_object_info(const mat4* mat, object_info obj_info);
bool entry_obj_by_object_info(const mat4* mat, object_info obj_info, mat4* bone_mat);
bool entry_obj_by_object_info(const mat4* mat, object_info obj_info,
vec4* blend_color, mat4* bone_mat, int32_t instances_count, mat4* instances_mat,
void(*func)(const ObjSubMeshArgs*), const ObjSubMeshArgs* func_data, bool enable_bone_mat, bool local = false);