Skip to content

Commit eb4f3a8

Browse files
committed
Ignore destination alpha when blitting to window in compatibility renderer
1 parent 7a0ab9d commit eb4f3a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gles3/rasterizer_gles3.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ void RasterizerGLES3::_blit_render_target_to_screen(RID p_render_target, Display
437437

438438
glActiveTexture(GL_TEXTURE0);
439439
glBindTexture(GL_TEXTURE_2D, rt->color);
440+
glEnable(GL_BLEND);
441+
glBlendFunc(GL_ONE, GL_ZERO);
442+
440443
if (rt->view_count > 1) {
441444
copy_effects->copy_to_rect_3d(screenrect, p_layer, GLES3::Texture::TYPE_LAYERED);
442445
} else {

0 commit comments

Comments
 (0)