summaryrefslogtreecommitdiffstats
path: root/drivers/gles3
diff options
context:
space:
mode:
authorGuoShuangyi <Khasehemwy@outlook.com>2024-07-04 17:38:14 +0800
committerGuoShuangyi <Khasehemwy@outlook.com>2024-07-04 17:38:14 +0800
commitaf62d15ebc24351a81832990c10dade161cef02f (patch)
tree9f52b88465fa8c582df3232b4e2cc2ed3dd26a74 /drivers/gles3
parent6a13fdcae3662975c101213d47a1eb3a7db63cb3 (diff)
downloadredot-engine-af62d15ebc24351a81832990c10dade161cef02f.tar.gz
fix depth_prepass_alpha not work in compatibility mode
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp
index 8e89889fd1..d637128c9e 100644
--- a/drivers/gles3/rasterizer_scene_gles3.cpp
+++ b/drivers/gles3/rasterizer_scene_gles3.cpp
@@ -1420,7 +1420,7 @@ void RasterizerSceneGLES3::_fill_render_list(RenderListType p_render_list, const
#else
bool force_alpha = false;
#endif
- if (!force_alpha && (surf->flags & GeometryInstanceSurface::FLAG_PASS_OPAQUE)) {
+ if (!force_alpha && (surf->flags & (GeometryInstanceSurface::FLAG_PASS_DEPTH | GeometryInstanceSurface::FLAG_PASS_OPAQUE))) {
rl->add_element(surf);
}
if (force_alpha || (surf->flags & GeometryInstanceSurface::FLAG_PASS_ALPHA)) {