浏览代码

Do not use depth prepass if effects are disabled, fixes #25267

Juan Linietsky 6 年之前
父节点
当前提交
6d4d55cd42
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gles3/rasterizer_scene_gles3.cpp

+ 1 - 1
drivers/gles3/rasterizer_scene_gles3.cpp

@@ -4144,7 +4144,7 @@ void RasterizerSceneGLES3::render_scene(const Transform &p_cam_transform, const
 		}
 		}
 	}
 	}
 
 
-	if (!storage->config.no_depth_prepass && storage->frame.current_rt && state.debug_draw != VS::VIEWPORT_DEBUG_DRAW_OVERDRAW) { //detect with state.used_contact_shadows too
+	if (!storage->config.no_depth_prepass && storage->frame.current_rt && state.debug_draw != VS::VIEWPORT_DEBUG_DRAW_OVERDRAW && !storage->frame.current_rt->flags[RasterizerStorage::RENDER_TARGET_NO_3D_EFFECTS]) { //detect with state.used_contact_shadows too
 		//pre z pass
 		//pre z pass
 
 
 		glDisable(GL_BLEND);
 		glDisable(GL_BLEND);