Try fb_depth same image_2d_ex parameters as trans_depth
This commit is contained in:
parent
93e0c2d096
commit
f12f10c2a1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue