Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong color...
authorIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 18:02:14 +0000 (20:02 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 18:02:14 +0000 (20:02 +0200)
src/video/gl/gl_texture.cpp

index edc8751..9618bef 100644 (file)
@@ -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");