From d1dd997f077fca5e1f969a1b610914f9310f9561 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Wed, 21 Apr 2021 22:57:48 +0200 Subject: Change: [Win32] Limit the OpenGL video driver to OpenGL 3.2 or newer on Windows. --- src/video/opengl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp index 8a4ce3451..1eab9b10e 100644 --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -548,6 +548,12 @@ const char *OpenGLBackend::Init(const Dimension &screen_res) _gl_major_ver = atoi(ver); _gl_minor_ver = minor != nullptr ? atoi(minor + 1) : 0; +#ifdef _WIN32 + /* Old drivers on Windows (especially if made by Intel) seem to be + * unstable, so cull the oldest stuff here. */ + if (!IsOpenGLVersionAtLeast(3, 2)) return "Need at least OpenGL version 3.2 on Windows"; +#endif + if (!BindBasicOpenGLProcs()) return "Failed to bind basic OpenGL functions."; SetupDebugOutput(); -- cgit v1.2.3-70-g09d2