From: Ingo Ruhnke Date: Fri, 1 Aug 2014 18:02:14 +0000 (+0200) Subject: Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong color... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6c15389f1fb96b800d800e7c0256aa27afa0778f;p=supertux.git Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong colors on worldmap) --- diff --git a/src/video/gl/gl_texture.cpp b/src/video/gl/gl_texture.cpp index edc875184..9618bef7c 100644 --- a/src/video/gl/gl_texture.cpp +++ b/src/video/gl/gl_texture.cpp @@ -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");