mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
enforce uncompressed render-to-texture
This commit is contained in:
parent
9d0860fffd
commit
bbab828032
@ -281,6 +281,12 @@ add_render_texture(Texture *tex, RenderTextureMode mode,
|
|||||||
tex->clear_ram_image();
|
tex->clear_ram_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set it to have no compression by default. You can restore
|
||||||
|
// compression later if you really, really want it; but this freaks
|
||||||
|
// out some drivers, and presumably it's a mistake if you have
|
||||||
|
// compression enabled for a rendered texture.
|
||||||
|
tex->set_compression(Texture::CM_off);
|
||||||
|
|
||||||
// Choose a default bitplane.
|
// Choose a default bitplane.
|
||||||
if (plane == RTP_COUNT) {
|
if (plane == RTP_COUNT) {
|
||||||
if (tex->get_format()==Texture::F_depth_stencil) {
|
if (tex->get_format()==Texture::F_depth_stencil) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user