summaryrefslogtreecommitdiff
path: root/src/video/opengl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/opengl.cpp')
-rw-r--r--src/video/opengl.cpp6
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();