Skip to content

Commit

Permalink
Better fix. Keeping values intact
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 6, 2014
1 parent b4e6f2c commit a1e6025
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/sdl/sdl_lightmap.cpp
Expand Up @@ -30,11 +30,14 @@ SDLLightmap::SDLLightmap() :
{
LIGHTMAP_DIV = 8;

width = SCREEN_WIDTH;
height = SCREEN_HEIGHT;

SDL_Renderer* renderer = static_cast<SDLRenderer*>(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;
Expand Down

0 comments on commit a1e6025

Please sign in to comment.