Merge pull request #97131 from BastiaanOlij/fix_gles_canvas_background
Fix compatibility canvas background depth issue
This commit is contained in:
commit
0f27e7816f
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
glBindTexture(rt->view_count > 1 ? GL_TEXTURE_2D_ARRAY : GL_TEXTURE_2D, rt->color);
|
||||||
|
|
||||||
copy_effects->copy_screen(render_data.luminance_multiplier);
|
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");
|
RENDER_TIMESTAMP("Render Opaque Pass");
|
||||||
|
|
Loading…
Reference in a new issue