1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #106737 from clayjohn/GL-blit-macos

Ignore destination alpha when blitting to window in compatibility renderer
This commit is contained in:
Rémi Verschelde
2025-05-23 10:25:24 +02:00
committed by GitHub

View File

@@ -437,6 +437,9 @@ void RasterizerGLES3::_blit_render_target_to_screen(RID p_render_target, Display
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, rt->color);
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ZERO);
if (rt->view_count > 1) {
copy_effects->copy_to_rect_3d(screenrect, p_layer, GLES3::Texture::TYPE_LAYERED);
} else {