Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . Thank you!

Commit 001aeb39 authored by Jakob Weiss's avatar Jakob Weiss

Fixed definition when texture manager is disabled

parent 1cee5229
......@@ -198,9 +198,9 @@ GLuint cgt::TextureManager::generateId(GLenum type, const cgt::svec3 & dimension
void cgt::TextureManager::releaseId(GLuint id, GLenum type, const cgt::svec3 & dimensions, GLenum internalFormat)
{
cache_key_t cacheKey(type, dimensions.x, dimensions.y, dimensions.z, internalFormat);
#ifdef ENABLE_TEXTURE_POOL
std::lock_guard<std::mutex> scope_lock(accessMutex_);
cache_key_t cacheKey(type, dimensions.x, dimensions.y, dimensions.z, internalFormat);
texturePool_.insert(std::make_pair(cacheKey, id));
activeAllocatedMemory_ -= textureByteSize(cacheKey);
texturePoolMemory_ += textureByteSize(cacheKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment