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