Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in TextureObjectSet::flushDeletedTextureObjects #956

Open
hankern opened this issue May 20, 2020 · 0 comments
Open

problem in TextureObjectSet::flushDeletedTextureObjects #956

hankern opened this issue May 20, 2020 · 0 comments

Comments

@hankern
Copy link

hankern commented May 20, 2020

in osg/Texture.cpp
void TextureObjectSet::flushDeletedTextureObjects(double /*currentTime*/, double& availableTime) { for(; itr != _orphanedTextureObjects.end() && timer.elapsedTime()<availableTime && numDeleted<maxNumObjectsToDelete; ++itr) {} }
why it needs condition timer.elapsedTime()<availableTime. the condition almost will be false and it leads to texture object will not be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant