=> e3495ede6128250b7b3f4326a784be2fa6a10b22
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex d66015a8..686a6dd6 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -380,12 +380,6 @@[m [mvoid create_Window_(iWindow *d, iRect rect, uint32_t flags) {[m }[m #endif[m }[m [31m-#if 0[m [31m- if (SDL_CreateWindowAndRenderer([m [31m- width_Rect(rect), height_Rect(rect), flags, &d->win, &d->render)) {[m [31m- return iFalse;[m [31m- }[m [31m-#endif[m const iBool setPos = left_Rect(rect) >= 0 || top_Rect(rect) >= 0;[m d->win = SDL_CreateWindow("",[m setPos ? left_Rect(rect) : SDL_WINDOWPOS_CENTERED,[m [36m@@ -394,8 +388,20 @@[m [mvoid create_Window_(iWindow *d, iRect rect, uint32_t flags) {[m height_Rect(rect),[m flags);[m if (!d->win) {[m [31m- fprintf(stderr, "[window] failed to create window: %s\n", SDL_GetError());[m [31m- exit(-3);[m [32m+[m[32m if (flags & SDL_WINDOW_OPENGL) {[m [32m+[m[32m /* Try without OpenGL support, then. */[m [32m+[m[32m setForceSoftwareRender_App(iTrue);[m [32m+[m[32m d->win = SDL_CreateWindow("",[m [32m+[m[32m setPos ? left_Rect(rect) : SDL_WINDOWPOS_CENTERED,[m [32m+[m[32m setPos ? top_Rect(rect) : SDL_WINDOWPOS_CENTERED,[m [32m+[m[32m width_Rect(rect),[m [32m+[m[32m height_Rect(rect),[m [32m+[m[32m flags & ~SDL_WINDOW_OPENGL);[m [32m+[m[32m }[m [32m+[m[32m if (!d->win) {[m [32m+[m[32m fprintf(stderr, "[window] failed to create window: %s\n", SDL_GetError());[m [32m+[m[32m exit(-3);[m [32m+[m[32m }[m }[m if (forceSoftwareRender_App()) {[m SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).