GLTexture* TexturesMap::TextureConstructor::construct (const TextureKey& key) { GLTexture* texture = new GLTexture(key.first, key.second); if (m_cache->realised()) { texture->realise(); } return texture; }