mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix obscure text-rendering crash
This commit is contained in:
parent
f9faceee5b
commit
4183b88c44
@ -195,7 +195,7 @@ garbage_collect() {
|
||||
Cache::iterator ci;
|
||||
for (ci = _cache.begin(); ci != _cache.end(); ++ci) {
|
||||
DynamicTextGlyph *glyph = (*ci).second;
|
||||
if (glyph->_geom_count != 0) {
|
||||
if (glyph == (DynamicTextGlyph *)NULL || glyph->_geom_count != 0) {
|
||||
// Keep this one.
|
||||
new_cache.insert(new_cache.end(), (*ci));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user