support for lower version of SDL

This commit is contained in:
Denis Pauk 2018-09-02 08:55:44 +03:00
parent 1a0c6fe05c
commit a52db8bc85

View file

@ -1643,7 +1643,11 @@ RE_InitContext(void *win)
SDL_RenderPresent(renderer); SDL_RenderPresent(renderer);
texture = SDL_CreateTexture(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, SDL_TEXTUREACCESS_STREAMING,
vid.width, vid.height); vid.width, vid.height);