Skip to content

Commit b331ffa

Browse files
committed
OpenGL3 renderer supports transparent boot splash
1 parent d79ff84 commit b331ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gles3/rasterizer_gles3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,9 @@ void RasterizerGLES3::set_boot_image(const Ref<Image> &p_image, const Color &p_c
470470
glBindFramebuffer(GL_FRAMEBUFFER, GLES3::TextureStorage::system_fbo);
471471
glViewport(0, 0, win_size.width, win_size.height);
472472
glEnable(GL_BLEND);
473-
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ZERO, GL_ONE);
473+
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE);
474474
glDepthMask(GL_FALSE);
475-
glClearColor(p_color.r, p_color.g, p_color.b, 1.0);
475+
glClearColor(p_color.r, p_color.g, p_color.b, OS::get_singleton()->is_layered_allowed() ? p_color.a : 1.0);
476476
glClear(GL_COLOR_BUFFER_BIT);
477477

478478
RID texture = texture_storage->texture_allocate();

0 commit comments

Comments
 (0)