Skip to content

Commit

Permalink
Merge pull request #97131 from BastiaanOlij/fix_gles_canvas_background
Browse files Browse the repository at this point in the history
Fix compatibility canvas background depth issue
  • Loading branch information
akien-mga committed Sep 18, 2024
2 parents 3abff94 + 491a5d9 commit 0f27e78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gles3/rasterizer_scene_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,9 @@ void RasterizerSceneGLES3::render_scene(const Ref<RenderSceneBuffers> &p_render_
glBindTexture(rt->view_count > 1 ? GL_TEXTURE_2D_ARRAY : GL_TEXTURE_2D, rt->color);

copy_effects->copy_screen(render_data.luminance_multiplier);

scene_state.enable_gl_depth_test(true);
scene_state.enable_gl_depth_draw(true);
}

RENDER_TIMESTAMP("Render Opaque Pass");
Expand Down

0 comments on commit 0f27e78

Please sign in to comment.