fix(am/src/native/ioe/gpu.c): Replace SDL_WINDOW_SHOWN flag with SDL_WINDOW_OPENGL
1. SDL_WINDOW_SHOWN flag has removed after SDL2.26.1 2. After sdl2-2.0.22-1, it causes the sdl window to randomly not appear
This commit is contained in:
parent
67699be876
commit
ba5ba9838e
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ void __am_gpu_init() {
|
||||||
#else
|
#else
|
||||||
W * 2, H * 2,
|
W * 2, H * 2,
|
||||||
#endif
|
#endif
|
||||||
SDL_WINDOW_SHOWN);
|
SDL_WINDOW_OPENGL);
|
||||||
surface = SDL_CreateRGBSurface(SDL_SWSURFACE, W, H, 32,
|
surface = SDL_CreateRGBSurface(SDL_SWSURFACE, W, H, 32,
|
||||||
RMASK, GMASK, BMASK, AMASK);
|
RMASK, GMASK, BMASK, AMASK);
|
||||||
SDL_AddTimer(1000 / FPS, texture_sync, NULL);
|
SDL_AddTimer(1000 / FPS, texture_sync, NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue