From: Ingo Ruhnke Date: Wed, 30 Jul 2014 17:37:52 +0000 (+0200) Subject: Removed unused SDL_Surface* screen; from GLLightmap X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=02aef4411cf7c5f251715ec1e32ef292cb322cf2;p=supertux.git Removed unused SDL_Surface* screen; from GLLightmap --- diff --git a/src/video/gl/gl_lightmap.cpp b/src/video/gl/gl_lightmap.cpp index 21412e7b9..8cf8494c0 100644 --- a/src/video/gl/gl_lightmap.cpp +++ b/src/video/gl/gl_lightmap.cpp @@ -42,17 +42,12 @@ #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); diff --git a/src/video/gl/gl_lightmap.hpp b/src/video/gl/gl_lightmap.hpp index 9d45a9ad2..b44063908 100644 --- a/src/video/gl/gl_lightmap.hpp +++ b/src/video/gl/gl_lightmap.hpp @@ -41,7 +41,6 @@ public: private: static const int LIGHTMAP_DIV = 5; - SDL_Surface* screen; boost::shared_ptr lightmap; int lightmap_width; int lightmap_height;