From: Tobias Markus Date: Wed, 6 Aug 2014 12:32:45 +0000 (+0200) Subject: Better fix. Keeping values intact X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a1e602563ed485accf1e9021d3c12c05daed31df;p=supertux.git Better fix. Keeping values intact --- diff --git a/src/video/sdl/sdl_lightmap.cpp b/src/video/sdl/sdl_lightmap.cpp index 9638c2a74..2630a725e 100644 --- a/src/video/sdl/sdl_lightmap.cpp +++ b/src/video/sdl/sdl_lightmap.cpp @@ -30,11 +30,14 @@ SDLLightmap::SDLLightmap() : { LIGHTMAP_DIV = 8; + width = SCREEN_WIDTH; + height = SCREEN_HEIGHT; + SDL_Renderer* renderer = static_cast(Renderer::instance())->get_sdl_renderer(); texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGB888, SDL_TEXTUREACCESS_TARGET, - SCREEN_WIDTH, SCREEN_HEIGHT); + width, height); if (!texture) { std::stringstream msg;