From ba5ba9838edcdef5cc8d7b436124af655ada36d1 Mon Sep 17 00:00:00 2001 From: Einsam Date: Fri, 17 Mar 2023 22:49:47 +0800 Subject: [PATCH] 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 --- am/src/native/ioe/gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/am/src/native/ioe/gpu.c b/am/src/native/ioe/gpu.c index 2388125..0309d50 100644 --- a/am/src/native/ioe/gpu.c +++ b/am/src/native/ioe/gpu.c @@ -36,7 +36,7 @@ void __am_gpu_init() { #else W * 2, H * 2, #endif - SDL_WINDOW_SHOWN); + SDL_WINDOW_OPENGL); surface = SDL_CreateRGBSurface(SDL_SWSURFACE, W, H, 32, RMASK, GMASK, BMASK, AMASK); SDL_AddTimer(1000 / FPS, texture_sync, NULL);