mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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:
|
||||
// check config setting
|
||||
if (compressed_textures) {
|
||||
// no compression for render target textures
|
||||
if (get_texture()->get_render_to_texture() == false) {
|
||||
// no compression for render target textures, or very small
|
||||
// textures
|
||||
if (get_texture()->get_render_to_texture() == false &&
|
||||
orig_width >= 4 && orig_height >= 4) {
|
||||
compress_texture = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user