Skip to content

Commit

Permalink
Fixed surfaces not getting properly converted to textures in OpenGL (…
Browse files Browse the repository at this point in the history
…i.e. wrong colors on worldmap)
  • Loading branch information
Grumbel committed Aug 1, 2014
1 parent 7421a76 commit 6c15389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/gl/gl_texture.cpp
Expand Up @@ -106,7 +106,7 @@ GLTexture::GLTexture(SDL_Surface* image) :
throw std::runtime_error("Couldn't create texture: out of memory");
}

//SDL_SetAlpha(image, 0, 0);
SDL_SetSurfaceBlendMode(image, SDL_BLENDMODE_NONE);
SDL_BlitSurface(image, 0, convert, 0);

assert_gl("before creating texture");
Expand Down

0 comments on commit 6c15389

Please sign in to comment.