diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-04-21 22:57:48 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-22 21:04:04 +0200 |
commit | d1dd997f077fca5e1f969a1b610914f9310f9561 (patch) | |
tree | 676c4c52ef14141525965a1f9a55e27b55dde333 | |
parent | ef80baf75c20410358a0d39c02b7f76e714abf86 (diff) | |
download | openttd-d1dd997f077fca5e1f969a1b610914f9310f9561.tar.xz |
Change: [Win32] Limit the OpenGL video driver to OpenGL 3.2 or newer on Windows.
-rw-r--r-- | src/video/opengl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |