From a91faa7207b203033c7cb6ea62e6541cec07cf58 Mon Sep 17 00:00:00 2001 From: "Ngo Iok Ui (Wu Yu Wei)" Date: Mon, 10 Jun 2024 16:04:27 +0900 Subject: [PATCH] Fix missing alpha value when using CompositeTarget::Fbo (#32453) --- components/compositing/gl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/compositing/gl.rs b/components/compositing/gl.rs index 18761c5829e..e5bd588b298 100644 --- a/components/compositing/gl.rs +++ b/components/compositing/gl.rs @@ -31,11 +31,11 @@ impl RenderTargetInfo { gl.tex_image_2d( gl::TEXTURE_2D, 0, - gl::RGB as gl::GLint, + gl::RGBA as gl::GLint, width.get() as gl::GLsizei, height.get() as gl::GLsizei, 0, - gl::RGB, + gl::RGBA, gl::UNSIGNED_BYTE, None, );