mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix depth bits
This commit is contained in:
parent
2e8fec7683
commit
3ec478cf04
@ -739,7 +739,7 @@ make_texture_buffer(const string &name, int x_size, int y_size,
|
|||||||
Texture *tex, bool to_ram) {
|
Texture *tex, bool to_ram) {
|
||||||
FrameBufferProperties props;
|
FrameBufferProperties props;
|
||||||
props.set_rgb_color(1);
|
props.set_rgb_color(1);
|
||||||
props.set_depth_bits(1);
|
props.set_depth_bits(get_fb_properties().get_depth_bits());
|
||||||
|
|
||||||
GraphicsOutput *buffer = get_gsg()->get_engine()->
|
GraphicsOutput *buffer = get_gsg()->get_engine()->
|
||||||
make_output(get_gsg()->get_pipe(),
|
make_output(get_gsg()->get_pipe(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user