projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7421a76
)
Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong color...
author
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 18:02:14 +0000
(20:02 +0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 18:02:14 +0000
(20:02 +0200)
src/video/gl/gl_texture.cpp
patch
|
blob
|
history
diff --git
a/src/video/gl/gl_texture.cpp
b/src/video/gl/gl_texture.cpp
index
edc8751
..
9618bef
100644
(file)
--- 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");