• Jakob Weiss's avatar
    Fixed Texture Manager · 0480dd96
    Jakob Weiss authored
    TextureManager now uses a configurable lifetime for the lifetime of a cache object. Upon every garbage collection event, the counter is incremented for each object in the cache and if a counter exceeds TextureManager::garbageLifetime, the texture id is marked for deletion.
    Deletion now happens in a separate thread, as a job enqueued to the OpenGLJobProcessor, in order to properly acquire a valid opengl context.
    0480dd96
texturemanager.h 2.75 KB