Skip to content

Commit 0028fd6

Browse files
authoredMar 15, 2025··
Merge pull request godotengine#104159 from clayjohn/rd-draw-list-regression
Error when draw list is not active in draw_list_switch_to_next_pass
2 parents 87f897a + 16b9667 commit 0028fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎servers/rendering/rendering_device.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4914,7 +4914,7 @@ uint32_t RenderingDevice::draw_list_get_current_pass() {
49144914
RenderingDevice::DrawListID RenderingDevice::draw_list_switch_to_next_pass() {
49154915
ERR_RENDER_THREAD_GUARD_V(INVALID_ID);
49164916

4917-
ERR_FAIL_COND_V(draw_list.active, INVALID_FORMAT_ID);
4917+
ERR_FAIL_COND_V(!draw_list.active, INVALID_FORMAT_ID);
49184918
ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, INVALID_FORMAT_ID);
49194919

49204920
draw_list_current_subpass++;

0 commit comments

Comments
 (0)
Please sign in to comment.