mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix another preload case
This commit is contained in:
parent
4ebbd72ab1
commit
62466b266f
@ -913,6 +913,17 @@ try_load_cache(PT(Texture) &tex, BamCache *cache, const Filename &filename,
|
|||||||
}
|
}
|
||||||
tex->set_keep_ram_image(false);
|
tex->set_keep_ram_image(false);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (!cache->get_cache_textures()) {
|
||||||
|
// This texture has no actual record, and therefore no
|
||||||
|
// compressed record (yet). And we're not supposed to be
|
||||||
|
// caching uncompressed textures.
|
||||||
|
if (gobj_cat.is_debug()) {
|
||||||
|
gobj_cat.debug()
|
||||||
|
<< "Not caching uncompressed texture\n";
|
||||||
|
}
|
||||||
|
record = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user