mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Merge pull request #78794 from joemarshall/patch-1
Fix threading bug in Vulkan rendering device
This commit is contained in:
commit
98358b2822
1 changed files with 2 additions and 0 deletions
|
@ -7470,6 +7470,7 @@ uint32_t RenderingDeviceVulkan::draw_list_get_current_pass() {
|
|||
}
|
||||
|
||||
RenderingDevice::DrawListID RenderingDeviceVulkan::draw_list_switch_to_next_pass() {
|
||||
_THREAD_SAFE_METHOD_
|
||||
ERR_FAIL_COND_V(draw_list == nullptr, INVALID_ID);
|
||||
ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, INVALID_FORMAT_ID);
|
||||
|
||||
|
@ -7485,6 +7486,7 @@ RenderingDevice::DrawListID RenderingDeviceVulkan::draw_list_switch_to_next_pass
|
|||
return int64_t(ID_TYPE_DRAW_LIST) << ID_BASE_SHIFT;
|
||||
}
|
||||
Error RenderingDeviceVulkan::draw_list_switch_to_next_pass_split(uint32_t p_splits, DrawListID *r_split_ids) {
|
||||
_THREAD_SAFE_METHOD_
|
||||
ERR_FAIL_COND_V(draw_list == nullptr, ERR_INVALID_PARAMETER);
|
||||
ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, ERR_INVALID_PARAMETER);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue