From 6c15389f1fb96b800d800e7c0256aa27afa0778f Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Fri, 1 Aug 2014 20:02:14 +0200 Subject: [PATCH] Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong colors on worldmap) --- src/video/gl/gl_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.11.0