瀏覽代碼

Merge pull request #104159 from clayjohn/rd-draw-list-regression

Error when draw list is not active in draw_list_switch_to_next_pass
Rémi Verschelde 4 月之前
父節點
當前提交
0028fd625e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/rendering/rendering_device.cpp

+ 1 - 1
servers/rendering/rendering_device.cpp

@@ -4914,7 +4914,7 @@ uint32_t RenderingDevice::draw_list_get_current_pass() {
 RenderingDevice::DrawListID RenderingDevice::draw_list_switch_to_next_pass() {
 RenderingDevice::DrawListID RenderingDevice::draw_list_switch_to_next_pass() {
 	ERR_RENDER_THREAD_GUARD_V(INVALID_ID);
 	ERR_RENDER_THREAD_GUARD_V(INVALID_ID);
 
 
-	ERR_FAIL_COND_V(draw_list.active, INVALID_FORMAT_ID);
+	ERR_FAIL_COND_V(!draw_list.active, INVALID_FORMAT_ID);
 	ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, INVALID_FORMAT_ID);
 	ERR_FAIL_COND_V(draw_list_current_subpass >= draw_list_subpass_count - 1, INVALID_FORMAT_ID);
 
 
 	draw_list_current_subpass++;
 	draw_list_current_subpass++;