Skip to content

Commit

Permalink
Fix depth clear value for uv2 baking in compatibility renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekpil authored and 2nafish117 committed Aug 5, 2024
1 parent 1a77bcc commit 5d419b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles3/rasterizer_scene_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d419b8

Please sign in to comment.