projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to use hardware surfaces instead of software ones
[supertux.git]
/
src
/
video
/
gl
/
gl_texture.cpp
diff --git
a/src/video/gl/gl_texture.cpp
b/src/video/gl/gl_texture.cpp
index
599fb68
..
952e424
100644
(file)
--- a/
src/video/gl/gl_texture.cpp
+++ b/
src/video/gl/gl_texture.cpp
@@
-93,11
+93,11
@@
GLTexture::GLTexture(SDL_Surface* image) :
image_height = image->h;
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
image_height = image->h;
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- SDL_Surface* convert = SDL_CreateRGBSurface(SDL_
S
WSURFACE,
+ SDL_Surface* convert = SDL_CreateRGBSurface(SDL_
H
WSURFACE,
texture_width, texture_height, 32,
0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff);
#else
texture_width, texture_height, 32,
0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff);
#else
- SDL_Surface* convert = SDL_CreateRGBSurface(SDL_
S
WSURFACE,
+ SDL_Surface* convert = SDL_CreateRGBSurface(SDL_
H
WSURFACE,
texture_width, texture_height, 32,
0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000);
#endif
texture_width, texture_height, 32,
0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000);
#endif