Changeset - r25221:010d3dc8936b
[Not reviewed]
master
0 1 0
Michael Lutz - 3 years ago 2021-04-21 20:57:48
michi@icosahedron.de
Change: [Win32] Limit the OpenGL video driver to OpenGL 3.2 or newer on Windows.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/video/opengl.cpp
Show inline comments
 
@@ -548,6 +548,12 @@ const char *OpenGLBackend::Init(const Di
 
	_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();
0 comments (0 inline, 0 general)