Try fb_depth same image_2d_ex parameters as trans_depth

This commit is contained in:
ice_iix 2020-12-26 20:55:54 -08:00
parent 93e0c2d096
commit f12f10c2a1
1 changed files with 3 additions and 2 deletions

View File

@ -860,13 +860,14 @@ impl TransInfo {
main.texture_2d(gl::COLOR_ATTACHMENT_0, gl::TEXTURE_2D, &fb_color, 0);
let fb_depth = gl::Texture::new();
fb_depth.bind(gl::TEXTURE_2D);
fb_depth.image_2d(
fb_depth.image_2d_ex(
gl::TEXTURE_2D,
0,
width,
height,
gl::DEPTH_COMPONENT24,
gl::DEPTH_COMPONENT,
gl::FLOAT,
gl::UNSIGNED_BYTE,
None,
);
fb_depth.set_parameter(gl::TEXTURE_2D, gl::TEXTURE_MIN_FILTER, gl::LINEAR);