Skip to content

Commit

Permalink
Fix for wrong lightmap size in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 6, 2014
1 parent 886fc4b commit b4e6f2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/video/sdl/sdl_lightmap.cpp
Expand Up @@ -30,14 +30,11 @@ SDLLightmap::SDLLightmap() :
{
LIGHTMAP_DIV = 8;

width = 800; //screen->w / LIGHTMAP_DIV;
height = 600; //screen->h / LIGHTMAP_DIV;

SDL_Renderer* renderer = static_cast<SDLRenderer*>(Renderer::instance())->get_sdl_renderer();
texture = SDL_CreateTexture(renderer,
SDL_PIXELFORMAT_RGB888,
SDL_TEXTUREACCESS_TARGET,
width, height);
SCREEN_WIDTH, SCREEN_HEIGHT);
if (!texture)
{
std::stringstream msg;
Expand Down

0 comments on commit b4e6f2c

Please sign in to comment.