Fix missing alpha value when using CompositeTarget::Fbo (#32453)

This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2024-06-10 16:04:27 +09:00 committed by GitHub
parent 855f32013f
commit a91faa7207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
);