Skip to content

Commit 6621d8e

Browse files
committed
Merge pull request godotengine#93931 from /fix-compatibility-depth_prepass_alpha
2 parents a0943ac + af62d15 commit 6621d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gles3/rasterizer_scene_gles3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ void RasterizerSceneGLES3::_fill_render_list(RenderListType p_render_list, const
14201420
#else
14211421
bool force_alpha = false;
14221422
#endif
1423-
if (!force_alpha && (surf->flags & GeometryInstanceSurface::FLAG_PASS_OPAQUE)) {
1423+
if (!force_alpha && (surf->flags & (GeometryInstanceSurface::FLAG_PASS_DEPTH | GeometryInstanceSurface::FLAG_PASS_OPAQUE))) {
14241424
rl->add_element(surf);
14251425
}
14261426
if (force_alpha || (surf->flags & GeometryInstanceSurface::FLAG_PASS_ALPHA)) {

0 commit comments

Comments
 (0)