mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-12-04 01:51:11 +00:00
support for lower version of SDL
This commit is contained in:
parent
1a0c6fe05c
commit
a52db8bc85
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue