diff --git a/src/client/refresh/soft/sw_main.c b/src/client/refresh/soft/sw_main.c index 43b7a333..5a50691d 100644 --- a/src/client/refresh/soft/sw_main.c +++ b/src/client/refresh/soft/sw_main.c @@ -1643,7 +1643,11 @@ RE_InitContext(void *win) SDL_RenderPresent(renderer); texture = SDL_CreateTexture(renderer, - SDL_PIXELFORMAT_BGRA32, +#if SDL_BYTEORDER == SDL_BIG_ENDIAN + SDL_PIXELFORMAT_BGRA8888, +#else + SDL_PIXELFORMAT_ARGB8888, +#endif SDL_TEXTUREACCESS_STREAMING, vid.width, vid.height);