mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
Don't compress textures smaller than 4x4 since texture compression requires a texture size >= 4x4.
This commit is contained in:
parent
c86c4a7acb
commit
7c76269c9e
@ -141,8 +141,10 @@ create_texture(DXScreenData &scrn) {
|
|||||||
case Texture::TT_cube_map:
|
case Texture::TT_cube_map:
|
||||||
// check config setting
|
// check config setting
|
||||||
if (compressed_textures) {
|
if (compressed_textures) {
|
||||||
// no compression for render target textures
|
// no compression for render target textures, or very small
|
||||||
if (get_texture()->get_render_to_texture() == false) {
|
// textures
|
||||||
|
if (get_texture()->get_render_to_texture() == false &&
|
||||||
|
orig_width >= 4 && orig_height >= 4) {
|
||||||
compress_texture = true;
|
compress_texture = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user