We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87f897a + 16b9667 commit 0028fd6Copy full SHA for 0028fd6
servers/rendering/rendering_device.cpp
@@ -4914,7 +4914,7 @@ uint32_t RenderingDevice::draw_list_get_current_pass() {
4914
RenderingDevice::DrawListID RenderingDevice::draw_list_switch_to_next_pass() {
4915
ERR_RENDER_THREAD_GUARD_V(INVALID_ID);
4916
4917
- ERR_FAIL_COND_V(draw_list.active, INVALID_FORMAT_ID);
+ ERR_FAIL_COND_V(!draw_list.active, INVALID_FORMAT_ID);
4918
ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, INVALID_FORMAT_ID);
4919
4920
draw_list_current_subpass++;
0 commit comments