diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-20 16:07:30 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-20 16:07:30 +0200 |
commit | 6621d8e8cc6ee294145d0bdd040ce67a2cf506cd (patch) | |
tree | 7445cd3d50e54ea833bb3379cbcb1ffec755b0b1 /drivers/gles3 | |
parent | a0943acda1232ee9efd2fae9a6f3138603b95979 (diff) | |
parent | af62d15ebc24351a81832990c10dade161cef02f (diff) | |
download | redot-engine-6621d8e8cc6ee294145d0bdd040ce67a2cf506cd.tar.gz |
Merge pull request #93931 from /fix-compatibility-depth_prepass_alpha
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_scene_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index a6796a1a6b..84b6ab4bd8 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)) { |