Removed unused SDL_Surface* screen; from GLLightmap
authorIngo Ruhnke <grumbel@gmail.com>
Wed, 30 Jul 2014 17:37:52 +0000 (19:37 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Wed, 30 Jul 2014 17:37:52 +0000 (19:37 +0200)
src/video/gl/gl_lightmap.cpp
src/video/gl/gl_lightmap.hpp

index 21412e7..8cf8494 100644 (file)
 #include "video/texture_manager.hpp"
 
 GLLightmap::GLLightmap() :
-  screen(),
   lightmap(),
   lightmap_width(),
   lightmap_height(),
   lightmap_uv_right(),
   lightmap_uv_bottom()
 {
-#ifdef OLD_SDL1
-  screen = SDL_GetVideoSurface();
-#endif
-
   lightmap_width = SCREEN_WIDTH / LIGHTMAP_DIV;
   lightmap_height = SCREEN_HEIGHT / LIGHTMAP_DIV;
   unsigned int width = next_po2(lightmap_width);
index 9d45a9a..b440639 100644 (file)
@@ -41,7 +41,6 @@ public:
 private:
   static const int LIGHTMAP_DIV = 5;
 
-  SDL_Surface* screen;
   boost::shared_ptr<GLTexture> lightmap;
   int lightmap_width;
   int lightmap_height;