mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Render target textures must not be compressed.
This commit is contained in:
parent
f149e311eb
commit
4d40265e24
@ -4842,6 +4842,10 @@ get_internal_image_format(Texture *tex) const {
|
|||||||
if (compression == Texture::CM_default) {
|
if (compression == Texture::CM_default) {
|
||||||
compression = (compressed_textures) ? Texture::CM_on : Texture::CM_off;
|
compression = (compressed_textures) ? Texture::CM_on : Texture::CM_off;
|
||||||
}
|
}
|
||||||
|
if (tex->get_render_to_texture()) {
|
||||||
|
// no compression for render targets
|
||||||
|
compression = Texture::CM_off;
|
||||||
|
}
|
||||||
bool is_3d = (tex->get_texture_type() == Texture::TT_3d_texture);
|
bool is_3d = (tex->get_texture_type() == Texture::TT_3d_texture);
|
||||||
|
|
||||||
if (get_supports_compressed_texture_format(compression)) {
|
if (get_supports_compressed_texture_format(compression)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user