summaryrefslogtreecommitdiffstats
path: root/drivers/gles3
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-20 16:07:30 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-20 16:07:30 +0200
commit6621d8e8cc6ee294145d0bdd040ce67a2cf506cd (patch)
tree7445cd3d50e54ea833bb3379cbcb1ffec755b0b1 /drivers/gles3
parenta0943acda1232ee9efd2fae9a6f3138603b95979 (diff)
parentaf62d15ebc24351a81832990c10dade161cef02f (diff)
downloadredot-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.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 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)) {