fb_depth use DEPTH_COMPONENT for both format/internalformat
This commit is contained in:
parent
f12f10c2a1
commit
1b400d1d17
|
@ -860,12 +860,11 @@ impl TransInfo {
|
||||||
main.texture_2d(gl::COLOR_ATTACHMENT_0, gl::TEXTURE_2D, &fb_color, 0);
|
main.texture_2d(gl::COLOR_ATTACHMENT_0, gl::TEXTURE_2D, &fb_color, 0);
|
||||||
let fb_depth = gl::Texture::new();
|
let fb_depth = gl::Texture::new();
|
||||||
fb_depth.bind(gl::TEXTURE_2D);
|
fb_depth.bind(gl::TEXTURE_2D);
|
||||||
fb_depth.image_2d_ex(
|
fb_depth.image_2d(
|
||||||
gl::TEXTURE_2D,
|
gl::TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
gl::DEPTH_COMPONENT24,
|
|
||||||
gl::DEPTH_COMPONENT,
|
gl::DEPTH_COMPONENT,
|
||||||
gl::UNSIGNED_BYTE,
|
gl::UNSIGNED_BYTE,
|
||||||
None,
|
None,
|
||||||
|
|
Loading…
Reference in New Issue