X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvideo%2Fgl%2Fgl_texture.cpp;h=952e4242638cd3054c6627eaa478463d2b75149e;hb=a73d9e682d533d8d8733be634e5235585c647df6;hp=599fb68d359bc36600f80e63904b8da76eb3f664;hpb=22c497cff8b94f218046ae774976a4ec7537a3f5;p=supertux.git diff --git a/src/video/gl/gl_texture.cpp b/src/video/gl/gl_texture.cpp index 599fb68d3..952e42426 100644 --- 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 - SDL_Surface* convert = SDL_CreateRGBSurface(SDL_SWSURFACE, + SDL_Surface* convert = SDL_CreateRGBSurface(SDL_HWSURFACE, texture_width, texture_height, 32, 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff); #else - SDL_Surface* convert = SDL_CreateRGBSurface(SDL_SWSURFACE, + SDL_Surface* convert = SDL_CreateRGBSurface(SDL_HWSURFACE, texture_width, texture_height, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000); #endif