Change: [Win32] Limit the OpenGL video driver to OpenGL 3.2 or newer on Windows.

This commit is contained in:
Michael Lutz 2021-04-21 22:57:48 +02:00
parent ef80baf75c
commit d1dd997f07
1 changed files with 6 additions and 0 deletions

View File

@ -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();