From 4ba071c004676231b416625863443dfc4adf8ae3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 7 Apr 2024 03:33:12 -0500 Subject: [PATCH] GUI: default to OpenGL 1.1 on XP --- src/gui/gui.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/gui.h b/src/gui/gui.h index 0e57cc97b..e99adbdd9 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -82,8 +82,13 @@ enum FurnaceGUIRenderBackend { #define GUI_BACKEND_DEFAULT_NAME "DirectX 11" #else #ifdef HAVE_RENDER_GL +#ifdef SUPPORT_XP +#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL1 +#define GUI_BACKEND_DEFAULT_NAME "OpenGL 1.1" +#else #define GUI_BACKEND_DEFAULT GUI_BACKEND_GL3 -#define GUI_BACKEND_DEFAULT_NAME "OpenGL" +#define GUI_BACKEND_DEFAULT_NAME "OpenGL 3.0" +#endif #else #ifdef HAVE_RENDER_SDL #define GUI_BACKEND_DEFAULT GUI_BACKEND_SDL