summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2024-06-08 14:11:35 +0200
committerGitHub <noreply@github.com>2024-06-08 14:11:35 +0200
commit5833f597865c773fae3ee09fc4e31d4a243f812d (patch)
tree51699cae09424f9716e7665f78a351d71b9a0bd6
parent1ce6df7087113a61491567f3ac55561d5688e2a8 (diff)
parent53e68ecbd44f0adb206b08e343e86980def3f0ed (diff)
downloadredot-engine-5833f597865c773fae3ee09fc4e31d4a243f812d.tar.gz
Merge pull request #92887 from wojtekpil/fix_compatibility_lm_baking
Fix depth clear value for uv2 baking in compatibility renderer
-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 6cbdf5e935..6a51ce6b70 100644
--- a/drivers/gles3/rasterizer_scene_gles3.cpp
+++ b/drivers/gles3/rasterizer_scene_gles3.cpp
@@ -3654,7 +3654,7 @@ void RasterizerSceneGLES3::_render_uv2(const PagedArray<RenderGeometryInstance *
glDrawBuffers(draw_buffers.size(), draw_buffers.ptr());
glClearColor(0.0, 0.0, 0.0, 0.0);
- RasterizerGLES3::clear_depth(1.0);
+ RasterizerGLES3::clear_depth(0.0);
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
uint64_t base_spec_constant = 0;