Turned a lot of other global objects into Currentons
[supertux.git] / src / video / gl / gl_lightmap.cpp
index 8df70db..b5251e0 100644 (file)
@@ -67,7 +67,7 @@ GLLightmap::GLLightmap() :
 
   m_lightmap_uv_right = static_cast<float>(m_lightmap_width) / static_cast<float>(width);
   m_lightmap_uv_bottom = static_cast<float>(m_lightmap_height) / static_cast<float>(height);
-  texture_manager->register_texture(m_lightmap.get());
+  TextureManager::current()->register_texture(m_lightmap.get());
 }
 
 GLLightmap::~GLLightmap()